#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  string s;
  cin >> s;
  if (s[0] == '3')
    cout << "bon\n";
  else if (s[0] == '0' or s[0] == '1' or s[0] == '6' or s[0] == '8')
    cout << "pon\n";
  else
    cout << "hon\n";
  return 0;
}
