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

void solve(){
string n;
	cin>>n;
   int len = strlen(num);
   char c = n[len-1];
   if(c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
   	cout<<"hon\n";
   else if(c=='3')
   	cout<<"bon\n";
   else
   	cout<<"pon\n";
}
int main(){
	solve();
}