while 1:y=input();print y,'is%s a leap year.'%' not'[:4*(y%4or(not y%100and(y%100or y%400)))]