while True: try: print((lambda y:"閏年" if ((y%4==0) and (y%100!=0)) or (y%400==0) else "平年")(int(input()))) except: break縮行一下就變成三行了呢哈哈