# include <iostream>

using namespace std;

//日本語の本（本、ぽん、ぼん）の使い分け

int main(){

cisin >> n;
int res = n % 10;


switch (res)
{
case 2:
case 4:
case 5:
case 7:
case 9:/* constant-expression */:
  cout << "hon";
  break;
case 0:
case 1:
case 6:
case 8:
 cout << "pon";
case 3:
 cout << "bon";
  break;
}


}