#include <bits/stdc++.h>
#define FOR(i,a,b) for(register int i=a;i<(b);++i)
#define ROF(i,a,b) for(register int i=a;i>=(b);--i)
using namespace std;
const int maxn = 5005;
const int M = 100005;
const int inf = 2147483647;
const double pi=3.1415926576;
const long long INF = 9223372036854775807ll;
typedef long long ll;

int main(){
	int n;
	scanf("%d",&n);
	int d=n%10;
	if(d==2 || d==4 || d==5 || d==7 || d==9){
		printf("hon\n");
	}else if(d==3){
		printf("bon\n");
	}else printf("pon\n");
}