#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  int m = n % 10;
  if (m == 3) {
    cout << "bon" << endl;
  } else if (m == (0 || 1 || 6 || 8)) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
