#!/usr/bin/env python3

n = input()

if len(n) == 1:
    if n == "2" or n == "4" or n == "5" or n == "7" or n == "9":
        print("hon")
    elif n == "0" or n == "1" or n == "6"or n == "8":
        print("pon")
    else:
        print("bon")
else:
    if n[:-1] == "2" or n[:-1] == "4" or n[:-1] == "5" or n[:-1] == "7" or n[:-1] == "9":
        print("hon")
    elif n[:-1] == "0" or n[:-1] == "1" or n[:-1] == "6"or n[:-1] == "8":
        print("pon")
    else:
        print("bon")