numbers = input()
numberArray = numbers.split()
length = len(numberArray)

lastNumber = numberArray[length-1]
if lastNumber == 3:
    print('bon')
elif lastNumber == 0 or lastNumber == 1 or lastNumber == 6 or lastNumber == 8:
    print('pon')
else:
    print('hon')
