#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, s;
  cin >> x;
  if (x >= 0 && x < 10) s = x;
  if (x >= 10 && x < 100) s = x / 10;
  if (x >= 101 && x < 1000) s = x / 100;
  if (s == 2 || s == 4 || s == 5 || s == 7 || s == 9) cout << "hon" << endl;
  if (s == 0 || s == 1 || s == 6 || s == 8) cout << "pon" << endl;
  if (s == 3) cout << "bon" << endl;
  return 0;
}
