program main;
var
	s : string;
    len : integer;

begin
	read(s);
    len := length(s);
    
    if (s[len]='2') or (s[len]='4') or (s[len]='5') or (s[len]='7') or (s[len]='9')
        	then writeln('hon');
        if (s[len]='0') or (s[len]='1') or (s[len]='6') or (s[len]='8')
        	then writeln('pon');
        if s[len]='0'
        	then writeln('hon');
end.