a=list(input())
if len(a)==1:
  if a=='2' or  a=='4' or  a=='5' or a=='7' or a=='9':
    print('hon')
  elif a=='0' or  a=='1' or  a=='6' or a=='8' :
    print('pon')  
  else:
    print('bon')
elif len(a)==2:
  if a[1]=='2' or  a[1]=='4' or  a[1]=='5' or a[1]=='7' or a[1]=='9':
    print('hon')
  elif a[1]=='0' or  a[1]=='1' or  a[1]=='6' or a[1]=='8' :
    print('pon')  
  else:
    print('bon')
elif len(a)==3:
  if a[2]=='2' or  a[2]=='4' or  a[2]=='5' or a[2]=='7' or a[2]=='9':
    print('hon')
  elif a[2]=='0' or  a[2]=='1' or  a[2]=='6' or a[2]=='8' :
    print('pon')  
  else:
    print('bon')