#include <iostream>
using namespace std;
int main(){
  cin >>　int num;
  while (0 < num){
    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;
}



