#include <stdio.h>
int main(void)
{
  int N;
  scanf ("%d",&N);
  if (N%10==3){printf ("bon");}
  else if (N%10==2,4,5,7,9){printf ("hon");}
  else if (N%10==0,1,6,8){printf ("pon");} // Your code here!
}
