var l:integer;
begin
readln(l);
if 2012-l<7 then writeln('doshkol'nik');
if (2012-l<19) and (2012-l>=7) then writeln('shkolnik');
if (2012-l>=19) and (2012-l<50) then writeln('rabotnik');
if 2012-l>=50 then writeln('pensioner');
end.
var l:integer;
begin
readln(l);
if 2012-l<7 then writeln('doshkol'nik');
if (2012-l<19) and (2012-l>=7) then writeln('shkolnik');
if (2012-l>=19) and (2012-l<50) then writeln('rabotnik');
if 2012-l>=50 then writeln('pensioner');
end.