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