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

def main():
    n = int(input())
    r = n % 10
    if n in [2, 4, 5, 6, 9]:
        print('hon\n')
    elif n in [0, 1, 6, 8]:
        print('pon\n')
    else:
        print('bon\n')

if __name__ == '__main__':
    main()
