#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> s;
  char c = *s.end();
  if (c == '2' or c == '4' or c == '5' or c == '7' or c == '9')
    cout << "hon\n";
  else if (c == '0' or c == '1' or c == '6' or c == '8')
    cout << "pon\n";
  else
    cout << "bon\n";
  return 0;
}
