def main():
  N = list(map(int,input().split()))[0]
  if N == 3:
    ans = "bon"
  elif N == 0 or N == 1 or N == 6 or N == 8:
    ans = "pon"
  else:
    ans = "hon"

  return ans
if __name__ == '__main__':
  print(main())