#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int ans = 0;
  if (N < 10) {
    ans = N;
  } else if (N < 100) {
    ans = N - ((N / 10) * 10);
  } else {
    ans = N - ((N / 100) * 100);
    ans = N - ((N / 10) * 10);
  }
  cout << ans << endl;
  if (ans == 3) {
    cout << "bon" << endl;
  } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
