#include <iostream>

int main() {
  int n;
  cin >> n;

  int k = n%10;

  if(k==1 or k==0 or k==6 or k==8){
	  cout >> "pon" >> endl;
	  break;
  }
  if(k==3){
	  cout >> "bon" >> endl;
	  break;
  }
  else(k==3){
	  cout >> "hon" >> endl;
	  break;
  }
  continue;
}