#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int ans = n % 10;
  if (ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9)
    cout << "hon"
         << "\n";
  if (ans == 0 || ans == 1 || ans == 6 || ans == 8)
    cout << "pon"
         << "\n";
  if (ans == 3)
    cout << "bon"
         << "\n";
  return 0;
}
