#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
  int a;
  cin >> a;
  int b = a % 10;
  string ans = "";
  if (b == 3) {
    ans = "bon";
  } else if (b == 0 || b == 1 || b == 6 || b == 8) {
    ans = "pon";
  } else {
    ans = "hon";
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  solve();
  return 0;
}
