#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string x = to_string(n);
  if (x[x.length() - 1] == '2' || x[x.length() - 1] == '4' ||
      x[x.length() - 1] == '5' || x[x.length() - 1] == '7' ||
      x[x.length() - 1] == '9') {
    cout << "bon" << endl;
  }
  if (x[x.length() - 1] == '0' || x[x.length() - 1] == '1' ||
      x[x.length() - 1] == '6' || x[x.length() - 1] == '8') {
    cout << "hon" << endl;
  }
  if (x[x.length() - 1] == '3') {
    cout << "pon" << endl;
  }
  return 0;
}
