#include <bits/stdc++.h>
using namespace std;
using ll = long long;
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647;
const double PI = acos(-1);
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};
int main() {
  ios_base::sync_with_stdio(false);
  ll N;
  cin >> N;
  if (N % 110 == 3) {
    cout << "bon" << endl;
  } else if (N % 110 == 0 || N % 110 == 1 || N % 110 == 6 || N % 110 == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
