#include <iostream>using namespace std;int main() {int a,b,c,d ;while(cin>>a){b=a%4;c=a%400;d=a%100;if (c==0){cout <<"閏年";}else if (d==0 ){cout <<"平年";}else if (b==0 ){cout <<"閏年";}else {cout<<"平年";}cout<<endl;}return 0;}