p, v = 7, 6 p -= 1 v += 3 v += 3 n, m = int(input()), int(input()) p += n v += m if p > v: print("Петя") else: print("Вася")