#include <bits/stdc++.h>
const int sz = 10000;
using namespace std;
int clue();
int result();
void show();
bool check();
bool cmp(int p, int q) { return p > q; }
int main() {
  int t;
  t = 1;
  while (t-- > 0) {
    clue();
  }
  return 0;
}
int clue() {
  string s;
  cin >> s;
  if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') {
    cout << "pon" << endl;
  } else if (s[0] == '3') {
    cout << "bon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
