#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int x;
  cin >> x;
  if (x % 10 == 3) {
    cout << "bon";
  }
  if (x % 10 == 0 or x % 10 == 1 or x % 10 == 6 or x % 10 == 8) {
    cout << "pon";
  } else {
    cout << "hon";
  }
}
