-module('Main').
-export([main/1]).

main(_) ->
    {ok, [N]} = io:fread("", "~d"),
    F = N rem 10,
    io:format("~s~n", [yomi(F)]),
    halt().


yomi(0) ->
    "pon";
yomi(1) ->
    "pon";
yomi(2) ->
    "hon";
yomi(3) ->
    "bon";
yomi(4) ->
    "hon";
yomi(5) ->
    "hon";
yomi(6) ->
    "pon";
yomi(7) ->
    "hon";
yomi(8) ->
    "pon";
yomi(9) ->
    "hon".
