#include<bits/stdc++.h>
#define FOR(i,a,b) for(int i = a; i < b; ++i)
#define FORD(i,a,b) for(int i = a; i >= b; --i)
#define pi pair<int, ll>
#define vi vector<int>
#define vvi vector<vi>
#define ALL(X) X.begin(),X.end()
#define fi first
#define se second
#define pb push_back
#ifndef DEBUG
#define endl (char)10
#endif
using namespace std;
using ll = long long;
using ld = long double;

int main (){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int n, a, b;
	cin >> n >> a >> b;
	vi V(n);
	FOR(i,0,n) cin >> V[i];
	if (a == b){
		int ans = 0;
		for (int x : V){
			ans ^= (x % (a + 1));
		}
		cout << (ans == 0 ? "Varys" : "Petyr") << endl;
		return 0;
	}
	if (n == 1){
		if (V[0] <= a){
			cout << "Petyr" << endl;
		} else {
			cout << (a > b ? "Petyr" : "Vasyr") << endl;
		}
		return 0;
	}
	sort(ALL(V));
	if (V[n - 1] <= min(a, b)){
		int ans = 0;
		for (int x : V){
			ans ^= x;
		}
		cout << (ans == 0 ? "Varys" : "Petyr") << endl;
		return 0;
	}
	if (V[n - 2] > min(a, b)){
		cout << (a > b ? "Petyr" : "Vasyr") << endl;
		return 0;
	}
	if (a > b){
		cout << "Petyr" << endl;
		return 0;
	}
	int ans = 0;
	FOR(i,0,n-1){
		ans ^= V[i];
	}
	FOR(i,0,a){
		if (V[n - 1] - i - 1 <= a && (ans ^ (V[n - 1] - i - 1)) == 0){
			cout << "Petyr" << endl;
			return 0;
		}
	}
	cout << "Vasyr" << endl;
	
}
