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