#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 9;
const int inf = 1e9 + 7;
string n;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  if (fopen("tet"
            ".inp",
            "r")) {
    freopen(
        "tet"
        ".inp",
        "r", stdin);
  }
  cin >> n;
  char c = n[0];
  if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') cout << "hon";
  if (c == '0' || c == '1' || c == '6' || c == '8') cout << "pon";
  if (c == '3') cout << "bon";
}
