import sys, random, math
from bisect import bisect_left, bisect_right
input = sys.stdin.readline

def main():
    inf = 10 ** 20

#    t = int(input())
#    t, a, b = map(int, input().split())
    t = 1
    
    for _ in range(1, t+1):
    #    print("Case #{}: ".format(_), end = '')
        
        n = input().strip()
        if(n[-1] == '0' or n[-1] == '1' or n[-1] == '6' or n[-1] == '6'):
            print("pon")
        elif(n[-1] == '3'):
            print("bon")
        else:
            print("hon")
        
        
        
main()