#include <bits/stdc++.h>
int main()
{
  int n,count;
  cin >>n;
  count=n%10;
  
  switch(count)
  {
    case 2:
    case 5:
    case 7:
    case 9:
    case 4:cout<<"hon"<<endl;
      		break;
    case 0:
    case 6:
    case 8:
    case 1:cout<<"pon"<<endl;
      	break;
    case 3:cout<<"bon"<<endl;
      		break;
  }
}
 