#include <bits/stdc++.h>
using namespace std;
struct __INIT {
  __INIT() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
  }
} __init;
int main(void) {
  string s;
  cin >> s;
  long long n = s.size() - 1;
  if (s[n] == '2' || s[n] == '4' || s[n] == '7' || s[n] == '9') {
    cout << "hon" << endl;
  } else if (s[n] == '0' || s[n] == '1' || s[n] == '6' || s[n] == '8') {
    cout << "pon" << endl;
  } else {
    cout << "bon" << endl;
  }
}
