#include <bits/stdc++.h>
using namespace std;
int n;
double a;
int b;
int main() {
  cin >> n;
  a = ((double)n / 10 - (double)floor(n / 10)) * 10;
  b = (int)a;
  if (b == 3) {
    cout << "bon" << endl;
  } else if (b == 0 || b == 1 || b == 6 || b == 8) {
    cout << "pon" << endl;
  } else if (b == 2 || b == 4 || b == 5 || b == 7 || b == 9) {
    cout << "hon" << endl;
  }
}
