while 1:y=input();print y,"is"+" not"*((y,y/100)[y%100<1]%4>0),"a leap year."