unittest
{
	assert( [ "16" ].parse.expand.solve == "pon" );
	assert( [ "2" ].parse.expand.solve == "hon" );
	assert( [ "183" ].parse.expand.solve == "bon" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = input.front.to!( dchar[] );
	return tuple( n );
}

auto solve( dchar[] n )
{
	if( n[ $ - 1 ] == '2' || n[ $ - 1 ] == '4' || n[ $ - 1 ] == '5' || n[ $ - 1 ] == '7' || n[ $ - 1 ] == '9' ) return "hon";
	if( n[ $ - 1 ] == '0' || n[ $ - 1 ] == '1' || n[ $ - 1 ] == '6' || n[ $ - 1 ] == '8' ) return "pon";
	return "bon";
}
