read N
digit1=`echo $N | rev | cut -c 1 | rev`
if [ "$digit1" = "3" ]; then
echo bon
elif [ "$digit1" = "0" ] || [ "$digit1" = "1" ] || [ "$digit1" = "6" ] || [ "$digit1" = "8" ]; then
echo pon
else
echo hon
fi