a,b,c = input().split() if a>b and a>c: print("Python") elif b>a and b>c: print("Java") else: print("C")