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

}
