#include <bits/stdc++.h>
using namespace std;
const long long int maxx = 1e6 + 2, limit = 9 * 1e18, MOD = 1e9 + 7;
int32_t main() {
  string s;
  cin >> s;
  if (s[0] == '3') {
    cout << "bon\n";
  } else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') {
    cout << "pon\n";
  } else {
    cout << "hon\n";
  }
}
