#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const double EXP = 1e-9;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int t;
  cin >> t;
  int x;
  cin >> x;
  x %= 10;
  if (x == 3)
    cout << "bon";
  else if (x == 0 || x == 1 || x == 6 || x == 8)
    cout << "pon";
  else
    cout << "hon";
  cout << '\n';
  return 0;
}
