while 1:y=input();print"%d is %sa leap year."%(y,(y%(4if y%50 else 16)and 1)*"not ")