a=int(input())
if a%4==0 and a%100 !=0:
  print("LEAP")
elif a%400==0:
  print("LEAP")
else:
  print("COMMON")

bb12cedb923ba9271364b1f0e59703a6771aa696
<mask token>

<mask token>
if a % 4 == 0 and a % 100 != 0:
    print('LEAP')
elif a % 400 == 0:
    print('LEAP')
else:
    print('COMMON')

a = int(input())
if a % 4 == 0 and a % 100 != 0:
    print('LEAP')
elif a % 400 == 0:
    print('LEAP')
else:
    print('COMMON')

a=int(input())
if a%4==0 and a%100 !=0:
  print("LEAP")
elif a%400==0:
  print("LEAP")
else:
  print("COMMON")
