#include <bits/stdc++.h>
using namespace std;
int nim[] = {0, 1, 2, 1, 4, 3, 2, 1, 5, 6,  2, 1, 8, 7,  5,
             9, 8, 7, 3, 4, 7, 4, 2, 1, 10, 9, 3, 6, 11, 12};
bool ss[100000];
int main() {
  int n;
  cin >> n;
  int sul = n;
  int sq = sqrt(n);
  int ans = 0;
  for (int i = 2; i <= sq; i++) {
    if (ss[i]) continue;
    long long a = i;
    int len = 0;
    while (a <= n) {
      if (a <= sq) ss[a] = 1;
      sul--;
      len++;
      a *= i;
    }
    ans ^= nim[len];
  }
  if (sul & 1) ans ^= nim[1];
  if (ans)
    cout << "Vasya";
  else
    cout << "Petya";
  return 0;
}
