#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int i;
while(cin>>i)
if(i%400==0 or (i%4==0 && i%100!=0))
cout<<"閏年";
if(i%4!=0 or (i%100==0 && i%400!=0))
cout<<"平年"<<endl;
}
return 0;