#include <bits/stdc++.h>
const int MXN = 2e5 + 1;
const long long MNN = 1e6 + 200;
const long long MOD = 1e9 + 7;
const long long INF = 1e18;
const int OO = 1e9 + 500;
using namespace std;
void istxt(bool yes) {
  freopen("/Users/mac/Desktop/input.txt", "r", stdin);
  freopen("/Users/mac/Desktop/output.txt", "w", stdout);
}
int main() {
  ios_base::sync_with_stdio(0), cout.tie(0), cin.tie(0);
  ;
  istxt(0);
  int t;
  for (int k = 0; k < 1; ++k) {
    int n;
    cin >> n;
    string s = to_string(n);
    reverse(s.begin(), s.end());
    if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') {
      cout << "pon" << endl;
    } else if (s[0] == '3') {
      cout << "bon" << endl;
    } else {
      cout << "hon" << endl;
    }
  }
  return 0;
}
