#include <iostream>
using namespace std;

int main() {
  int N;
  cin >> N;
  switch(N%10) {
    case 2, 5, 7, 9:
      cout << "hon";
      break;
    case 0, 1, 6, 8:
      cout << "pon";
      break;
    default:
      cout << "bon";
      break;
  }
  
}