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