#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  char a = s[s.size() - 1];
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) cout << "hon";
  if (a == 0 || a == 1 || a == 6 || a == 8) cout << "pon";
  if (a == 3) cout << "bon";
}
