#include <bits/stdc++.h>
using namespace std;
long long gcd(int a, int b) {
  if (!a) return b;
  return gcd(b % a, a);
}
void perform() {
  int n;
  cin >> n;
  n %= 10;
  string ans = "";
  switch (n) {
    case 3:
      ans = "bon";
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      ans = "pon";
      break;
    default:
      ans = "hon";
      break;
  }
  cout << ans << "\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed;
  long long t = 1;
  while (t--) {
    perform();
  }
}
