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)