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

int main()
{
  int n;
  cin>>n;
  int last=n%10:
  if(last==2 or last==4 or last==5 or last==7 or last==9)
    cout<<"hon"<<endl;
  else if(last==3)
    cout<<"bon"<<endl;
  else
    cout<<"pon"<<endl;
  return 0;
}