#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ii = pair<int, int>;
using vi = vector<int>;
using vii = vector<ii>;
using vc = vector<char>;
using vb = vector<bool>;
using vll = vector<ll>;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(9);
  int n;
  cin >> n;
  vector<string> pronun = {"hon", "pon", "bon"};
  vi indices = {1, 0, 2, 0, 0, 1, 0, 1, 0};
  cout << pronun[indices[n % 10]];
}
