N=int(input())
N_mozi="N"
for i in range N_mozi:
  if i<len(N_mozi)+1:
    continue
  else:
    end_N=i
if end_N==2 or end_N==4 or end_N==5 or end_N==7 or end_N==9:
  print("hon")
elif end_N==3:
  print("bon")
else:
  print("pon")