#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define all(v) v.begin(),v.end()

int main() {
  int n,n1;
  cin >> n;
  n1=n%10;
  if(n1==3){
  	cout << "bon" << endl;
  }
  else if(n1==0&&n1==1&&n1==6&&n1=8){
  	cout << "pon" << endl;
  }
  else{
  	cout << "hon" << endl;
  }
}

