#include <iostream>
using namespace std;
int judge(int year)
{
if(year%4==0 && year%100!=0 || year%400==0 )
{
return 1;
}
else
{
return 2;
}
}
int main()
{
int year;
while(cin>>year)
{
if(judge(year) == 2)
{
cout<<"平年"<<endl;
}
else
{
cout<<"閏年"<<endl;
}
}
return 0;
}