#include <bits/stdc++.h>
using namespace std;
long long ans;
int N, tmp;
void solve() {
  tmp = N % 10;
  if (tmp == 3) {
    cout << "bon" << endl;
  } else if (tmp % 2 == 0) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
int main() {
  cin >> N;
  solve();
}
