def Ii():return int(input())
def Mi():return map(int,input().split())
def Li():return list(map(int,input().split()))

n = Ii()%10
if n == 3
  print('bon')
elif n==2 or n == 4 or n == 5 or n==7 or n == 9
  print('hon')
else
  print('pon')

 