#include <bits/stdc++.h>
using namespace std;
int main() {
  string g;
  cin >> g;
  char l = g.front();
  if (l == '0' || '1' || '6' || '8') {
    cout << "pon";
  } else if (l == '2' || '4' || '5' || '7' || '9') {
    cout << "hon";
  } else if (l == '3') {
    cout << "bon";
  }
  cout << l;
  return 0;
}
