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


def main():
    import sys
    input = sys.stdin.readline

    n = int(input())

    if n % 100 == 3:
        print('bon')
    elif n % 100 == 0:
        print('pon')
    elif n % 100 == 1:
        print('pon')
    elif n % 100 == 6:
        print('pon')
    elif n % 100 == 8:
        print('pon')
    else:
        print('hon')


if __name__ == '__main__':
    main()
