while 1:x=input();print x,'is',['a','not a'][x%4>0 or(x%400>0 and x%100<1)],'leap year.'