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