Олимпиадный тренинг

Задача 21814. A game


Задача

Темы:
First-graders Petya and Vasya play an exciting game at a physical education lesson. There are n columns of different heights in a row in front of the guys. The boys have m rings, which they throw in turn on the posts, and if there is already a ring on the post, then you cannot throw the ring on this post. Petya throws first.
The guys found out that Petya can throw the ring on the column only if the height of this column is not less than l1 and not more than r1. He cannot throw the ring on a column that is too high or too low. But if the column is of the right height, the roll is guaranteed to succeed. Similarly, Vasya can throw the ring only on columns with a height no less than l2 and no more than r2 and is guaranteed to throw the ring on any such column.
Fizruk Andrei Sergeevich promised to give five to the guys who, at the end of the game, would throw more rings on the posts. Help the guys figure out which one of them will win with the optimal game.

Input data format
The first line of the input file contains two integers n and m — the number of columns and rings, respectively (1 ≤ m ≤ n ≤ 105). The next two lines contain the numbers l1, r1 and l2, r2 — the minimum and maximum heights of the columns that Petya and Vasya can throw rings on, respectively (1 ≤ l1 ≤ r1 ≤ 109, 1 ≤ l2 ≤ r2 ≤ 109). The last line contains n numbers describing the height of the columns, the height of each column is a positive integer and does not exceed 109.
Output format
In the output file print "Petya" if Petya wins, "Vasya" if Vasya wins, or "Draw" if both boys throw an equal number of rings on the posts in the optimal game.