#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  switch (a[a.size() - 1]) {
    case 0:
      cout << "pon";
      break;
    case 1:
      cout << "pon";
      break;
    case 6:
      cout << "pon";
      break;
    case 8:
      cout << "pon";
      break;
    case 3:
      cout << "bon";
      break;
    default:
      cout << "hon";
      break;
  }
  return 0;
}
