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