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