main(n){for(;~scanf("%d",&n);)printf("%d is %sa leap year.\n",n,(!(n%4)&&(n%100||!(n%400)))?"":"not ");}