#27237: python 解答


aa212813tw@gmail.com (我是承翰)


while True:
    a = int(input())
    if(a%4 != 0 and a%100 != 0 or a%4 == 0):
        print('閏年')
    else:
        print('平年')