#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  switch (x % 10) {
    case 3:
      cout << "bon";
      break;
    case 0:
    case 1:
    case 6:
    case 7:
      cout << "pon";
      break;
    default:
      cout << "hon";
      break;
  }
  return 0;
}
