a, b, c = int(input()), int(input()), int(input()) m = max(a, b, c) if a == m: print("Петя") elif b == m: print("Вася") elif c == m: print("Толя")