#include <bits/stdc++.h>
using namespace std;
void solveTC() {
  string str;
  cin >> str;
  if (str.back() == '2' or str.back() == '2' or str.back() == '5' or
      str.back() == '7' or str.back() == '9')
    cout << "hon\n";
  else if (str.back() == '0' or str.back() == '1' or str.back() == '6' or
           str.back() == '8')
    cout << "pon\n";
  else if (str.back() == '3')
    cout << "bon\n";
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  solveTC();
  return 0;
}
