#include<stdio.h>
int main()
{
  int year;
       printf("请输入年份:");
       scanf("%d",&year);
  if(year<=0){
       printf("非法数据");}
  else if((year%400==0)||((year%100!=0)&&(year%4==0))) {
       printf("%d年份是闰年",year);}
  else{
       printf("%d年份是平年",year);}
  return 0;
}