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