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