a=scan("stdin") write(paste(a,"is",ifelse((a%%100+!a%%400)*!a%%4,"a","not a"),"leap year."),"")