#include <bits/stdc++.h>
using namespace std;

int main() {
  vector<string> ans = {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  int N;
  cin >> N;
  cout << ans.at(N % 10) << "\n";
}