#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, string> m;
  m[2] = "hon";
  m[4] = "hon";
  m[5] = "hon";
  m[5] = "hon";
  m[9] = "hon";
  m[0] = "pon";
  m[1] = "pon";
  m[6] = "pon";
  m[8] = "pon";
  m[3] = "bon";
  cout << m[n % 10] << "\n";
}
