#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  if (str.size() == 1) {
    if (str.at(0) == '2' || str.at(0) == '4' || str.at(0) == '5' ||
        str.at(0) == '7' || str.at(0) == '9') {
      cout << "hon" << endl;
    } else if (str.at(0) == '0' || str.at(0) == '1' || str.at(0) == '6' ||
               str.at(0) == '8') {
      cout << "pon" << endl;
    } else if (str.at(0) == '3') {
      cout << "bon" << endl;
    }
  } else if (str.size() == 2) {
    if (str.at(1) == '2' || str.at(1) == '4' || str.at(1) == '5' ||
        str.at(1) == '7' || str.at(1) == '9') {
      cout << "hon" << endl;
    } else if (str.at(1) == '0' || str.at(1) == '1' || str.at(1) == '6' ||
               str.at(1) == '8') {
      cout << "pon" << endl;
    } else if (str.at(1) == '3') {
      cout << "bon" << endl;
    }
  } else if (str.size() == 3) {
    if (str.at(1) == '2' || str.at(1) == '4' || str.at(1) == '5' ||
        str.at(1) == '7' || str.at(1) == '9') {
      cout << "hon" << endl;
    } else if (str.at(1) == '0' || str.at(1) == '1' || str.at(1) == '6' ||
               str.at(1) == '8') {
      cout << "pon" << endl;
    } else if (str.at(2) == '3') {
      cout << "bon" << endl;
    }
  }
}
