#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int k = n % 10;
  if (k == 2 || k == 4 || k == 5 || k == 7 || k == 8) {
    cout << "hon";
  } else if (k == 3) {
    cout << "bon";
  } else
    cout << "pon";
  return 0;
}
