import sys
import socket

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


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


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    N = read_int()
    if N % 10 == 2 or 4 or 5 or 7 or 9:
      res = 'hon'
    elif N % 10 == 0 or 1 or 6 or 8:
      res = 'pon'
    elif N % 10 == 3:
      res = 'bon'
    print(res)


main()
