// In the name of Aadi Shakti
// We are nothing and you are everything
// Jai Mata Di

#include <bits/stdc++.h>
using namespace std;
int main()
{
  string str ;
  cin >> str ;
  char last = str [str.size() - 1] ;
  if ( last == '2' or last == '4' or last == '5' or last == '7' or last == '9') 
    cout << "hon" << endl ;
  else if ( last == '1' or las == '6' or last == '8')
    cout << "pon" << endl; 
  else if(last == '3')
    cout << "bon" << endl ;
  return 0 ;
}