Given two wrestlers' moves across rounds, determine the winner by comparing total points and, if tied, the best prefix score.
Two wrestlers, Vasya and Petya, take part in a match consisting of several rounds. In each round, one wrestler gains some number of points, and the other wrestler may gain points as well depending on the move description.
Your task is to determine the winner using the match rules:
This is a classic scoring-and-tie-breaking simulation problem: process the rounds in order, maintain cumulative scores, and apply the required tie-break rule carefully.
Return the winner's name according to the match rules.
Example 1
Input
3 10 5 7 8 6 2
Output
Vasya
Explanation
After summing the rounds, Vasya finishes with a larger total score, so he wins.
Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.