#include <iostream>
using namespace std;
int main(){
  stirng s;
  cin >> s;
  char a = s[s.length()-1];
  if(a=='2'||a=='4'||a=='5'||a=='7'||a=='9'){
    cout << "hon" << endl;
  }else if(a=='3'){
    cout << "bon" << endl;
  }else{
    cout << "pon" << endl;
  }
}