while True: try: n=int(input()) c=(n%4==0)-(n%100==0)+(n%400==0) if(c):print('閏年') else: print('平年') except EOFError: break