while True: try: g=int(input()); print("閏年" if (g % 4 == 0 and g % 100!=0 or g % 400 == 0) else "平年") except EOFError: break