#include <iostream>
using namespace std;
int main(){
  int sum=0,num;
  cin >>　num;
  num1=num;
  while (0 < num1){
    num1 = (num1 / 10);
    sum++;
}
  sum=sum-1;
  while(sum>0){
    num=num/10;
  }
  switch (num) {
		case 3:
			std ::  cout << "bon"<< endl;
			break;
    case 0:
    case 1:
    case 6:
    case 8:
			std ::  cout << "pon"<< endl; 
			break;
		default:
			std ::  cout << "hon"<< endl;
			break;
	}
	return 0;
}






