#include <bits/stdc++.h>
using namespace std;
const long long inf = (1LL << 60) - 1;
int dx[] = {-1, 1, 0, 0};
int dy[] = {0, 0, -1, 1};
void solve() {
  string s;
  cin >> s;
  if (s[0] == '2' || s[0] == '4' || s[0] == '5' || s[0] == '7' || s[0] == '9')
    cout << "hon"
         << "\n";
  else if (s[0] == '3')
    cout << "bon"
         << "\n";
  else
    cout << "pon"
         << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
