import sys
import numpy as np
import math
from collections import deque 
from functools import reduce

# input = sys.stdin.readline

n = input()
if n[-1] == '2' or [-1] == '4' or [-1] == '5' or [-1] == '7' or [-1] == '9':
    print('hon')
elif n[-1] == '3':
    print('bon')
else:
    print('pon')

