var
a,b:longint;
begin
read(a);
b:=a mod 4;
if b=0 then write('闰年') else
b:=a mod 400;
if b=0 then write('闰年') else write(平年');
end;
end.