#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
    cout << "hon";
  else if (n == 3)
    cout << "bon";
  else
    cout << "pon";
  return 0;
}
