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