#include <iostream>
#define _ int
#define ___ n
#define __ cin
#define ____ if
#define p 400
#define x 0
#define s 4
#define c12334 "閏年\n"
#define abcde "平年\n"
#define v while
#define table cout
#define stupid else
#define i_am_smart ==
#define i_am_handsome !=
#define you_are_stupid %
using namespace std;
int main() {
_ ___;
v(__>>___){
____(___ you_are_stupid p i_am_smart x or (___ you_are_stupid 4 i_am_smart x&&___ you_are_stupid (p/s) i_am_handsome x))
table<<c12334;
stupid table<<abcde;
}
}