for(;$=readline();)print($+' is '+($%4||$%100<1&&$%400?'not ':'')+'a leap year.')