N = int(input())
hon = '24579'
pon = '0168'
bon = '3'
if bon in str(N): print ("bon")
else:
 for i in str(N):
     if i in hon: 
         print ("hon")
         break
     if i in pon: 
         print ("pon")
         break