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