#include <bits/stdc++.h>
using namespace std;
const long double PI = acosl(-1.0);
const long long mod = 1000000007;
const long long inf = 9223372036854775803;
const int maxN = 6;
int main() {
  cout.precision(10);
  cout << fixed;
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  vector<string> arr = {"pon", "pon", "hon", "bon", "hon",
                        "hon", "pon", "hon", "pon", "hon"};
  cout << arr[s[0] - '0'];
  return 0;
}
