#35112: python解答


andrew20050108@gmail.com (ko aoko)


while True:
  try:
   y=int(input())
  except:
        break
  output = '平年'
  if y%4 == 0:
   output = '閏年'
  if y%100 == 0:
   output = '平年' 
  if y%400 == 0:
   output = '閏年' 
  print(output)