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