import numpy as np
#, K = map(int, input().split())
#S = input()
N = int(input())

ichinokurai = N%10

if ichinokurai in [2,4,5,7,9]:
    print('hon')
elif ichinokurai in [0,1,6,8]:
    print('pon')
elif ichinokurai in [3]:
    print('bon')
    
    