#include <bits/stdc++.h>
using namespace std;
void comp() {
  long long i, j, k, m, n, l;
  string s;
  cin >> s;
  n = s.length();
  if (s[n - 1] == '3') {
    cout << "bon\n";
  } else if (s[i] == '0' || s[i] == '1' || s[i] == '6' || s[i] == '8') {
    cout << "pon\n";
  } else {
    cout << "hon\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  long long i = 0, t;
  t = 1;
  while (t--) {
    comp();
  }
  return 0;
}
