#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int n = s.length() - 1;
  if (s[n] == '2' || s[n] == '4' || s[n] == '5' || 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 if (s[n] == '3')
    cout << "bon" << endl;
  return 0;
}
