from sys import stdin, stdout
for _ in range(1):#int(stdin.readline())
    n=int(stdin.readline())
    n%=10
    if n in {2,5,7,9,5}:print('hon')
    elif n in {0,1,6,8}:print('pon')
    else:print('bon')