#include <bits/stdc++.h>

#define newline printf("\n")
#define nl '\n'
#define ll long long 
#define ui unsigned int
#define ul unsigned long

using namespace std;

int main()
{
	int N;
	scanf("%d", &N);

	int digit = N % 10;

	string result;

	if(!digit || digit == 1 || digit == 6 || digit == 8){
		result = "pon"
	} else if(digit == 3){
		result = "bon";
	} else {
		result = "hon"
	}

	printf("%s\n", result);

	return 0;
}
