#include<stdio.h>
#pragma warning(disable:4996)

int main() {
	int N;
	scanf("%d", &N); 
	N = N % 10;
	switch (N)
	{
	case 3:
		printf("bon");
		break;
	case 0:
	case 1:
	case 6:
	case 8:
		printf("pon");
		break;

	default:
		printf("hon");
		break;

	}

	return 0;


	


}