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