main(y){for(;~scanf("%d",&y);)printf("%d is %sa leap year.\n",y,"not "-!(y%50?y%4:y%80));}