#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  string ans[] = {"pon", "hon", "hon", "bon", "hon",
                  "hon", "pon", "hon", "pon", "hon"};
  int n;
  cin >> n;
  cout << ans[n % 10] << "\n";
  return 0;
}
