Codeforces Round 188 (Div. 1)
D
Game with Powers
Codeforces
2300
原题
← CE →
翻译中…

Vasya and Petya wrote down all integers from $1$ to $*n*$ to play the "powers" game ($*n*$ can be quite large; however, Vasya and Petya are not confused by this fact).

翻译中…

Players choose numbers in turn (Vasya chooses first). If some number $*x*$ is chosen at the current turn, it is forbidden to choose $*x*$ or all of its other positive integer powers (that is, $*x*^{2}$, $*x*^{3}$, $...$) at the next turns. For instance, if the number $9$ is chosen at the first turn, one cannot choose $9$ or $81$ later, while it is still allowed to choose $3$ or $27$. The one who cannot make a move loses.

翻译中…

Who wins if both Vasya and Petya play optimally?

翻译中…

Input

翻译中…

Input contains single integer $*n*$ ($1 ≤ *n* ≤ 10^{9}$).

翻译中…

Output

翻译中…

Print the name of the winner — "Vasya" or "Petya" (without quotes).

翻译中…

Note

翻译中…

In the first sample Vasya will choose 1 and win immediately.

翻译中…

In the second sample no matter which number Vasya chooses during his first turn, Petya can choose the remaining number and win.

翻译中…

样例

Input #1
1
Output #1
Vasya
InputCopy OutputCopy
Input #2
2
Output #2
Petya
InputCopy OutputCopy
Input #3
8
Output #3
Petya
InputCopy OutputCopy
题目信息
题号
317D
时间限制
1 s
内存限制
256 MB
标签
动态规划
博弈论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。