#include<iostream>
#include<cstdlib>
using namespace std;
int main()
{
int y;
while(cin>>y){
if(y>=0){
if(y%400==0)
cout<<"閏年"<<"\n";
else if(y%100==0)
cout<<"平年"<<"\n";
else if(y%4==0)
cout<<"閏年"<<"\n";
else
cout<<"平年"<<"\n";
}
}
return 0;
}
我送出之後他說沒有明確範圍,沒有用while,但我改了之後還是找不出錯誤......