#include <iostream>

int main(){
  int n;
  std::cin >> n;
  int t = n%10;
  switch(t){
    case 0:
    case 1:
    case 6:
    case 8:
        cout << "pon" << endl; break;
    case 3:
      cout << "bon" << endl; break;
    default:
      cout << "hon" << endl; break;
  }
}