#include <bits/stdc++.h>
using namespace std;
map<int, int> ct;
map<int, int> ct2;
int n, m, l;
int a, b, c;
string second[100005];
string str;
string ans;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int N;
  cin >> N;
  if (N >= 100) {
    N %= 10;
    cout << N << endl;
  } else if (N >= 10 && N <= 100)
    N %= 10;
  if (N == 3) {
    cout << "bon" << endl;
  } else if (N == 0 || N == 1 || N == 6 || N == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
