a,b,c = input().split(' ')
print('Python' if a>b and a>c else 'Java' if b>a and b>c else 'C')
# 这里的else 'Java' if 实际上就是 elif 'Java'