# 找数组中最大值
numList = input().split()
dict_language = {0:"Python",1:"Java",2:"C"}
print(dict_language[numList.index(max(numList))])
 
# 三个数找最大值
numList = input().split()

if numList[0]>numList[1] and numList[0]>numList[2]:
    print("Python")
elif numList[1]>numList[0] and numList[1]>numList[2]:
    print("Java")
else:
    print("C")