# coding: utf-8



import sys

import math

import collections

import itertools

import bisect

INF = 10 ** 13

MOD = 10 ** 9 + 7

def input() : return sys.stdin.readline().strip()

def gcd(x, y) : return x if y == 0 else gcd(y, x%y)

def lcm(x, y) : return (x * y) // gcd(x, y)

def I() : return int(input())

def LI() : return [int(x) for x in input().split()]

def RI(N) : return [int(input()) for _ in range(N)]

def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]

def LS() : return input().split()

def RS(N) : return [input() for _ in range(N)]

def LRS(N) : return [input().split() for _ in range(N)]

def PL(L) : print(*L, sep="\n")

def YesNo(B) : print("Yes" if B else "No")

def YESNO(B) : print("YES" if B else "NO")



N = input()



n = int(N[-1])

if n in [2,4,5,7,9]:

    print("hon")

elif n in [0,1,6,8]:

    print("pon")

else:

    print("bon")

# coding: utf-8



import sys

import math

import collections

import itertools

INF = 10 ** 13

MOD = 10 ** 9 + 7

def input() : return sys.stdin.readline().strip()

def lcm(x, y) : return (x * y) // math.gcd(x, y)

def I() : return int(input())

def LI() : return [int(x) for x in input().split()]

def RI(N) : return [int(input()) for _ in range(N)]

def LRI(N) : return [[int(x) for x in input().split()] for _ in range(N)]

def LS() : return input().split()

def RS(N) : return [input() for _ in range(N)]

def LRS(N) : return [input().split() for _ in range(N)]

def PL(L) : print(*L, sep="\n")

def YesNo(B) : print("Yes" if B else "No")

def YESNO(B) : print("YES" if B else "NO")





N = input()

 

n = int(N[-1])

if n in [2,4,5,7,9]:

    print("hon")

elif n in [0,1,6,8]:

    print("pon")

else:

    print("bon")

# coding: utf-8
import sys
import math
import collections
import itertools
import bisect

INF = 10**13
MOD = 10**9 + 7


def input():
    return sys.stdin.readline().strip()


def gcd(x, y):
    return x if y == 0 else gcd(y, x % y)


def lcm(x, y):
    return (x * y) // gcd(x, y)


def I():
    return int(input())


def LI():
    return [int(x) for x in input().split()]


def RI(N):
    return [int(input()) for _ in range(N)]


def LRI(N):
    return [[int(x) for x in input().split()] for _ in range(N)]


def LS():
    return input().split()


def RS(N):
    return [input() for _ in range(N)]


def LRS(N):
    return [input().split() for _ in range(N)]


def PL(L):
    print(*L, sep="\n")


def YesNo(B):
    print("Yes" if B else "No")


def YESNO(B):
    print("YES" if B else "NO")


N = input()
n = int(N[-1])
if n in [2, 4, 5, 7, 9]:
    print("hon")
elif n in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

# coding: utf-8
import sys
import math
import collections
import itertools

INF = 10**13
MOD = 10**9 + 7


def input():
    return sys.stdin.readline().strip()


def lcm(x, y):
    return (x * y) // math.gcd(x, y)


def I():
    return int(input())


def LI():
    return [int(x) for x in input().split()]


def RI(N):
    return [int(input()) for _ in range(N)]


def LRI(N):
    return [[int(x) for x in input().split()] for _ in range(N)]


def LS():
    return input().split()


def RS(N):
    return [input() for _ in range(N)]


def LRS(N):
    return [input().split() for _ in range(N)]


def PL(L):
    print(*L, sep="\n")


def YesNo(B):
    print("Yes" if B else "No")


def YESNO(B):
    print("YES" if B else "NO")


N = input()
n = int(N[-1])
if n in [2, 4, 5, 7, 9]:
    print("hon")
elif n in [0, 1, 6, 8]:
    print("pon")
else:
    print("bon")

-import bisect -def gcd(x, y): -    return x if y == 0 else gcd(y, x % y) - - -    return (x * y) // gcd(x, y) +    return (x * y) // math.gcd(x, y)