while 1:n=input();print`n`+' is '+'not '*(n%4!=0 or(n%400!=0 and n%100==0))+'a leap year.'