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