#include <bits/stdc++.h>
using namespace std;
const long long int MOD = 1e9 + 7;
const long long int INF = 10000005;
const long long int MAX_N = 1e4 + 10;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  cin >> n;
  string s = to_string(n);
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9 ||
      s[(int)s.length() - 2] - '0' == 2 || s[(int)s.length() - 2] - '0' == 4 ||
      s[(int)s.length() - 2] - '0' == 5 || s[(int)s.length() - 2] - '0' == 7 ||
      s[(int)s.length() - 2] - '0' == 9)
    cout << "hon";
  else if (n == 0 || n == 1 || n == 6 || n == 8 ||
           s[(int)s.length() - 2] - '0' == 0 ||
           s[(int)s.length() - 2] - '0' == 1 ||
           s[(int)s.length() - 2] - '0' == 6 ||
           s[(int)s.length() - 2] - '0' == 8)
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
