#include <bits/stdc++.h>
using namespace std;
int lastdigit(int n) { return n % 10; }
void solve() {
  int n;
  cin >> n;
  int x = lastdigit(n);
  if (x == 2 || x == 4 || x == 5 || x == 7) {
    cout << "hon";
  } else if (x == 0 || x == 1 || x == 6 || x == 8) {
    cout << "pon";
  } else if (x == 3) {
    cout << "bon";
  }
}
int main() {
  solve();
  return 0;
}
