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