function Main(input)
{
	input = parseInt(input.substr(input.length - 1, 1));
	var d = "";

	if (input == 3)
	{
		d = "bon";
	}else if ([2, 4, 5, 7, 9].includes(input))
	{
		d = "hon";
	}else{
		d = "pon";
	}

	console.log(d);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));