#include <bits/stdc++.h>
using namespace std;
int main() {
  char n;
  cin >> n;
  switch (n) {
    case '3':
      cout << "bon";
      break;
    case '0':
    case '1':
    case '6':
    case '8':
      cout << "pon";
      break;
    default:
      cout << "hon";
      break;
  }
}
