#include <bits/stdc++.h>
using namespace std;

int main() {
    int a,j == a - (a/10)*10;
    cin >> a;
      
  if( j == ( (2 || 4) || (5 || 7) ) || 9 ){
    
    cout << "hon" << endl;
    
  }
    
  else if( j == ( (0 || 1) || (6 || 8) ))  {
    
    cout << "pon" << endl;
    
  }
     
  else if( j == 3 ){
    
    cout << "bon" << endl;
    
  }
          
}
    
