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