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

int main() {
 string b;
  cin >> b;
  for (int i = 0; i < 2; i++){
  if(b.size() == i + 1){
    if (b.at(2) == 2 || b.at(2) == 4 || b.at(2) == 5|| b.at(2) == 7 || b.at(2) == 9){
      cout << "hon" << endl;
    }
    else if (b.at(2) == 0 || b.at(2) == 1 || b.at(2) == 6|| b.at(2) == 8){
      cout << "pon" << endl;
    }
    else if (b.at(2) == 3){
      cout << "bon" << endl;
    }
  }
}