import calendar def f(a): if calendar.isleap(a):w="a" else:w="not a" return w while 1: a=input() print a,"is",f(a),"leap year."