#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[]) {
  int n, ans;
  cin >> n;
  if(n>9){
    ans = n/10;
  }
  else{
    ans=n;
  }
  if(ans==2 || ans==4 || ans==5 || ans==7 || ans==9){
    cout << "hon" << endl;
  }
  else if(ans==0 || ans==1 || ans==6 || ans==8){
    cout << "pon" << endl;
  }
  else{
    cout << "bon" << endl;
  }

  return 0;
}