跳到主要内容
图灵 OJTURING / ONLINE JUDGE

#F2405. Game with Powers

    ID: 2411 传统题 2000ms 256MiB 尝试: 0 已通过: 0 难度: 8 上传者: 标签>动态规划博弈数学挑战难度共享题库Codeforces英文题面题目来源题面语言

Game with Powers

题目描述

D. Game with Powers
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

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, x2, x3, ...) 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≤109).

Output

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

Examples
Input
1
Output
Vasya
Input
2
Output
Petya
Input
8
Output
Petya
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.


题目来源:fps-www.educg.net-codeforce-1-2833.xml.zip;FPS 共享题包,题包内第 2034 题。保留原作者与原赛事署名。