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

int main() {
    int a;
    cin >> a;
  
    for(int j == a - (a/10)*10; j < 10; j++)
      
  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;
    
  }
          
}
    