#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string x;
  cin >> x;
  if (x[0] == '2' || x[0] == '4' || x[0] == '5' || x[0] == '7' || x[0] == '9') {
    cout << "hon\n";
  } else {
    if (x[0] == '3') {
      cout << "bon\n";
    } else
      cout << "pon\n";
  }
}
