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