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

int main(){
  int N,S;
  cin >> N;
  S=N%10;
  if(S==2 || S==4 || S==5 || S==7 || S==9 ){
    cout << "hon" <<endl;
  }
  if(S==0||S==1||S==6||S==8){
    cout << "pon" <<endl;
  }
  if(S==3)
    cout << "bon" <<endl;
  }
}
