#include <bits/stdc++.h>
using namespace std;
using namespace std;
signed main() {
  long long n;
  cin >> n;
  long long a = n % 10;
  cout << a << endl;
  string ans;
  switch (a) {
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      ans = "hon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      ans = "pon";
      break;
    default:
      ans = "bon";
      break;
  }
  cout << ans << endl;
  return 0;
}
