#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const ll INF = 1e18;
const int Inf = 1e9;
const double EPS = 1e-9;
const ll MOD = 1e9 + 7;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(0);
  string s;
  cin >> s;
  if (s[2] == '3')
    cout << "bon" << endl;
  else if (s[2] == '0' || s[2] == '1' || s[2] == '6' || s[2] == '8')
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
