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