#include <bits/stdc++.h>
using namespace std;
int main() {
  string N;
  cin >> N;
  size_t size = N.length();
  cout << N[size - 1] << endl;
  if (N[size - 1] == 3)
    cout << "bon" << endl;
  else if (N[size - 1] == 0 || N[size - 1] == 1 || N[size - 1] == 6 ||
           N[size - 1] == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
