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

int main(){
  
  vector<int> n;
  cin >> n;
  reverse(n.begin(), n.end());
  
  if(n.at(0) == '3'){
    cout << "bon" << endl;
  }
  else if(n.at(0) == '0' || n.at(0) == '1' || n.at(0) == '6' || n.at(0) == '8'){
    cout << "pon" << endl;
  }
  else{
    cout << "hon" << endl;
  }
  
}
