#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  map<int, string> m;
  string second;
  cin >> second;
  reverse(second.begin(), second.end());
  m[5] = m[7] = m[9] = m[4] = m[2] = "hon";
  m[3] = "bon";
  m[0] = m[1] = m[6] = m[8] = "pon";
  cout << m[second[0] - '0'] << "\n";
  return 0;
}
