#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,m;
	string a[10]={"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
	scanf("%d",&n);
	m=n%10; 
	cout<<a[m]<<endl;
	return 0;
}
