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