#include<bits/stdc++.h>
#define endl "\n" 
using namespace std;
#define debug(x) cout<<"The value of "<<#x<<" is "<<x<<endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    cin.sync_with_stdio(0); cin.tie(0); 
    int n;
    cin>>n;
    int n=n%10;
    vector<int>hon={2,4,5,7,9};
    vector<int>pon={0,1,6,8};
    vector<int>bon={3};
    for(auto i:hon)
    if(i==n){
        cout<<"hon"<<endl;
        return 0;
    } 
    for(auto i:pon)
    if(i==n){
        cout<<"pon"<<endl;
        return 0;
    }
    for(auto i:bon)
    if(i==n){
        cout<<"bon"<<endl;
        return 0;
    }
}
