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