#include<iostream>
using namespace std;

#変数の宣言
str saffix;

void main(){
	cin >> N;
	N = N%10;
	if(N == 3){
		saffix = "bon";
	}else if(N = 0)||(N = 1)||(N = 6)||(N = 10){
		saffix = "pon";
	}else{
		saffix = "hon";
	}
	
	cout << saffix;
}
