#include<bits/stdc++.h>
#define MOD (1e9 +7)
#define rep(i, x, n) for(int i = x; i < n; i++)
#define repr(i, x, n) for(int i = x; i > n; i--)

#define ll long long
const long long iinf = 1e18;
const int inf = 1e9; 
using namespace std;


void solve()
{
    int n; cin >> n;
    n %= 10;
    
    if(c == 0 || c == 1 || c == 6 || c == 8) cout << "pon";
    else if(c == 3) cout << "bon";
    else cout << "hon";
    
    

}

int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0); 

    int t; cin >> t;
    int i = 1;
    // while(t--){
    //     //cout << "Case " << i++ << ": " ;
    //     solve();
    //     cout  << endl;
    // }
    solve();

    return 0;
}