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