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