#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  int i=N%10;
  if(i==3)cout<<"bon"<<endl;
  else if(i==0||i==1||i==6||i==8)cout<<"pon"<<endl;
  else cout<<"hon"<<endl;
}
