#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int year;
while(scanf("%d",&year)!=EOF)
{
if(year == 0)
return 0;
else if((( year % 4 == 0) && ( year % 100 != 0)) || ( year % 400 == 0))
printf("a leap year\n");
else
printf("a normal year\n");
}
return 0;
}
沒有留言:
張貼留言