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

int main() {
  int ans;
  int N;
  cin >> N;
  ans = N % 10 
    
    if(ans == 3){
      cout << "bon" << endl;
    }
   
    if(ans == 0){
      cout << "pon" << endl;
    }
    
    if(ans == 1){
      cout << "pon" << endl;
    }
  
    if(ans == 6){
      cout << "pon" << endl;
    }
    
    if(ans == 8){
      cout << "pon" << endl;
    }
  
    else {
      cout << "hon" << endl;
    }
}
