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