    N  = input()
             
    if (N[-1]) = 2.4.5.9
            
    print ("hon")
             
    elif (N[-1]) = 0.4.6.8
           
    print ("pon")
             
    elif (N[-1]) = 3 
            
    print ("bon")