while 1: _=input() print _,'is%s a leap year.'%' not'[4-(_%4or(_%16>0)>_%50)*4:]