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