main(i,c){while(gets(c))printf("%s is %sa leap year.\n",c,(i=atoi(c))%400&&!(i%100)||i%4?"not ":"");}