#include <bits/stdc++.h>
using namespace std;
int main() {
	int n;
	cin >> n;
  int a[5]={2,4,5,7,9};
  int b[4]={0,1,6,8};
  
  for(int i=0;i<5;i++)
  {
    if(n%10==a[i])
  cout<<"hon"<<endl;
  }
  for(int i=0;i<4;i++)
  {if(n%10==b[i]
       cout<<"pon"<<endl;
       }
       
  if(n%10==3)
      cout<<"bon"<<endl;
      return 0;
}
