exec('from sys import stdin\nfor i in map(int,stdin):print((lambda y:"閏年" if ((y%4==0) and (y%100!=0)) or (y%400==0) else "平年")(i))')