#!/usr/bin/env python

# -*- coding: utf-8 -*-



import sys





def input():

    return sys.stdin.readline()





def resolve():

    n = input().rstrip()



    if n[-1] == "3":

        print("bon")

    elif n[-1] == "2" or n[-1] == "4" or n[-1] == "5" or n[-1] == "7" or n[-1] == "9":

        print("hon")

    else:

        print("pon")





if __name__ == "__main__":

    resolve()



#!/usr/bin/env python

# -*- coding: utf-8 -*-

import math



n = input().rstrip()



if n[len(n)-1] == "3":

    print("bon")

elif n[len(n)-1] == "0" or n[len(n)-1] == "1" or n[len(n)-1] == "6" or n[len(n)-1] == "8":

    print("pon")

else:

    print("hon")

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys


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


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


if __name__ == "__main__":
    resolve()

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math

n = input().rstrip()
if n[len(n) - 1] == "3":
    print("bon")
elif (
    n[len(n) - 1] == "0"
    or n[len(n) - 1] == "1"
    or n[len(n) - 1] == "6"
    or n[len(n) - 1] == "8"
):
    print("pon")
else:
    print("hon")

-import sys +import math - -def input(): -    return sys.stdin.readline() - - -def resolve(): -    n = input().rstrip() -    if n[-1] == "3": -        print("bon") -    elif n[-1] == "2" or n[-1] == "4" or n[-1] == "5" or n[-1] == "7" or n[-1] == "9": -        print("hon") -    else: -        print("pon") - - -if __name__ == "__main__": -    resolve() +n = input().rstrip() +if n[len(n) - 1] == "3": +    print("bon") +elif ( +    n[len(n) - 1] == "0" +    or n[len(n) - 1] == "1" +    or n[len(n) - 1] == "6" +    or n[len(n) - 1] == "8" +): +    print("pon") +else: +    print("hon")