# -*- coding: utf-8 -*-
"""
Created on Mon May 18 14:53:59 2020

@author: 17664
"""

yomi = {2:'hon', 4:'hon', 5:'hon', 7:'hon', 9:'hon', 0:'pon', 1:'pon',
        6:'pon', 8:'pon', 3:'bon'}

print(yomi[input()[-1]])