#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
const long long INF = 1e12;
const int inf = 1e9;
const int mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int l = 0;
  l = n % 10;
  cout << l << endl;
  if (l == 2 || l == 4 || l == 5 || l == 7 || l == 9)
    cout << "hon" << endl;
  else if (l == 3)
    cout << "bon" << endl;
  else
    cout << "pon" << endl;
  return 0;
}
