import sys
import math
input = sys.stdin.readline

############ ---- Input Functions ---- ############
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    s = input()
    return(list(s[:len(s) - 1]))
def invr():
    return(map(int,input().split()))

def solve(n):
    n = str(n)[0]
    if n == '2' or n=='4' or n == '5' or n == '7' or n == '9':
        return 'hon'
    
    elif n == '0' or n == '1' or n == '6' or n == '8':
        return 'pon'

    elif n == '3':
        return 'bon'

def main():
    inpu = inp()
    answer = solve(inpu)
    print(answer)

main()


