#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  if(N.end == 2)
    cout << "hon" << endl;
  else if(N.end == 4)
    cout << "hon" << endl;
  else if(N.end == 5)
    cout << "hon" << endl;
  else if(N.end == 7)
    cout << "hon" << endl;
  else if(N.end == 9)
    cout << "hon" << endl;
  else if(N.end == 1)
    cout << "pon" << endl;
  else if(N.end == 6)
    cout << "pon" << endl;
  else if(N.end == 8)
    cout << "pon" << endl;
  else(N.end == 3)
    cout << "bon" << endl;
}
    
    
