for(int y;(y=stdin)>0;)write((string)y+" is "+((y%4<1&&y%100>0||y%400<1)?"":"not ")+"a leap year.");