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