for(;$=readline();)print($,'is',$%($%50?4:16)?'not a':'a','leap year.')