N = list(map(int,input()))
hon_list = [2, 4, 5, 7, 9]
pon_list = [0, 1, 6, 8]
bon_list = [3]

if len(N) >= 2:
  N = N[-1]
  if N in hon_list:
    print('hon')
  elif N in pon_list:
    print('pon')
  else:
    print('bon')


  
  

