#include <iostream>
using namespace std;

#define TEN 10
void main(){
  int n;
  cin >> n;
  if(n%TEN == 3){
    cout << "bon";
  }
  else if(n%TEN == 0 || n%TEN == 1 || n%TEN == 6 || n%TEN == 8){
    cout << "pon";
  }
  else{
    cout << "hon";
  }
  return 0;
}