import strutils, sequtils
  

when isMainModule and not defined(LOCAL):
  let N = stdin.readLine
  let lastChar = N.substr(1, 1000).parseInt
  case lastChar
    of 2,4,5,7,9:
      echo "hon"
    of 0,1,6,8:
      echo "pon"
    else:
      echo "bon"