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

int main(){
	string counter[10] = {"pon", "pon", "hon", "bon", "hon", "hon","pon", "hon", "pon", "hon"};
	int n;
	scanf("%d", &n);
	cout << counter[n%10];
	
}
