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

int main() {
  int N, dekasa, f;
  cin >> N;
  dekasa = N.size();
  f = dekasa - 1;
  if (f == 2 || f == 4 || f==5 || f==7 || f==9){
    cout << "hon" << endl;
  }
  else if (f==0 || f==1 || f==6 || f==8){
    cout << "pon" << endl;
  }
  else {
    cout << "bon" << endl;
  }
}