def main():
    s, = map(int, open(0).read().split())

    first_place_of_s = s % 10

    if first_place_of_s in [2, 4, 5, 7, 9]:
        ans = 'hon'
    elif first_place_of_s in [0, 1, 6, 8]:
        ans = 'pon'
    else:
        ans = 'bon'

    ans = ''
    print(ans)
    return()


if __name__ == '__main__':
    main()
