#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, min;
  cin >> N;
  min = N % 10;
  if (min == 3) cout << "bon" << endl;
  if (min == 0 or min == 1 or min == 6 or min == 8)
    cout << "pon" << endl;
  else
    cout << "hon" << endl;
  return 0;
}
