while 1:a=input();print`a`+" is "+"not "*((a%4!=0)+(a%100==0)-(a%400==0))+"a leap year."