#include <bits/stdc++.h>
using namespace std;
int main(int argc, char *argv[]) {
  int n;
  cin >> n;
  n = n % 10;
  cout << n << endl;
  set<int> hon{2, 4, 5, 7, 9};
  set<int> pon{0, 1, 6, 8};
  set<int> bon{3};
  if (hon.find(n) != hon.end()) {
    cout << "hon" << endl;
  } else if (pon.find(n) != pon.end()) {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
  return 0;
}
