#include <iostream>
#include <array>
#include <algorithm>

template<typename T, typename V>
bool exists(T ary, V v)
{
    return std::find(std::cbegin(ary), std::cend(ary), v);
}

int main()
{
    int n;
    std::cin >> n;

    int m = n % 10;
    std::array hon = { 2, 4, 5, 7, 9 };
    std::array pon = { 0, 1, 6, 8 };
    std::array bon = { 3 };

    if (exists(hon, m))
    {
        std::cout << "hon" << std::endl;
    }
    else if (exists(pon, m))
    {
        std::cout << "pon" << std::endl;
    }
    else
    {
        std::cout << "bon" << std::endl;
    }
}
