#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
#define SIZE 200005
#define INF 1000000005LL
#define MOD 1000000007
using namespace std;
typedef long long int ll;
typedef pair <int,int> P;
int main(){
    int n;
    //24579
    cin >> n;
    n %= 10;
    if(n==2or n==4 or n==5 or n==7 or n==9){
        cout << "hon" << endl;
    }else if(n==3){
        cout << "bon" << endl;
    }else{
        cout << "pon" << endl;
    }
  return 0;
}