write(paste(y<-scan('stdin'),'is',ifelse(y%%4^(1+!y%%50),'not a','a'),'leap year.'),'')