a, b = int(input()), int(input())
if a > b:
    print("Петя")
else:
    print("Вася")