#include <iostream>#include <string>#include <math.h>using namespace std;int main(int argc, char** argv){int a;while(cin>>a)if(a%400==0||a%4==0&&a%100!=0)cout<<"閏年"<<endl;elsecout<<"平年"<<endl;}