#Include <bits/stdc++.h> 
using namespace std;

int main(){
  int N;
  cin >> N;
  if((N-3)%10==0){
    cout << "bon" << endl;
  }else if(N%10==0||(N-1)%10==0||(N-6)%10==0||(N-8)%10==0){
    cout << "pon" << endl;
  }else{
    cout << "hon" << endl;
  }
}
    