#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ii = pair<int, int>;
const int maxn = 1e5 + 10;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  string n;
  cin >> n;
  if (n[n.size() - 1] == '3') {
    cout << "bon\n";
  } else if (n[n.size() - 1] == 2 || n[n.size() - 1] == 4 ||
             n[n.size() - 1] == 5 || n[n.size() - 1] == 7 ||
             n[n.size() - 1] == 9) {
    cout << "hon\n";
  } else {
    cout << "pon\n";
  }
  return 0;
}
