num = int(input())
answer = "

if num==2 or num==4 or num==5 or num==7 or num==9:
  answer = "hon"
 
elif num==0 or num==1 or num==6 or num==8:
  answer = "pon"

elif num==3:
  answer = "bon"

print(answer)

