#include <iostream>
#include <string.h>
using namespace std;
int main() {
    int n_int;
    std::string n;
    cin >> n_int;
    n=std::to_string(n_int);
    if(n[n.size()] == "2" || n[n.size()] == "4" || n[n.size()] == "5" || n[n.size()] == "7" || n[-1] == "9"){
          cout << "hon" << "\n";}
  else     if(n[n.size()] == "0"|| n[n.size()] == "1" || n[n.size()] == "6" || n[n.size()] == "8" ){
          cout << "pon" << "\n";}
  else     if(n[n.size()] == "3"){
          cout << "ban" << "\n";}

}
