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


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