while 1:y=input();print y,'is not'[:2+y%4*4+(y%100==0)*(y%16)],'a leap year.'