#! /usr/bin/env python3
# -*- coding:utf-8 -*-

def name_count(N):
    x = N%10
    if x in [2, 4, 5, 7, 9]: return "hon"
    elif x in [0, 1,6, 8]: return "pon"
    else return "bon"

def main():
    N = int(input())
    print(name_count(N))

if __name__ == "__main__":
    main()
