#include <bits/stdc++.h>
using namespace std;
using ii = pair<int, int>;
using ll = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int n;
  cin >> n;
  string s = to_string(n);
  if (s[0] == '2' || s[0] == '4' || s[0] == '5' || s[0] == '7' || s[0] == '9') {
    cout << "hon" << '\n';
  } else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') {
    cout << "pon" << '\n';
  } else {
    cout << "bon" << '\n';
  }
  return 0;
}
