#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  char c;
  cin >> c;
  if (c == '3')
    cout << "bon";
  else if (c == '0' || c == '1' || c == '6' || c == '8')
    cout << "pon";
  else
    cout << "hon";
  return 0;
}
