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

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