#include <bits/stdc++.h>
using namespace std;
int x, p;
void test_case() {
  int n;
  scanf("%d", &n);
  int k = n % 10;
  if (k == 2 || k == 4 || k == 5 || k == 7) {
    printf("\nhon");
  } else if (k == 0 || k == 1 || k == 6 || k == 8) {
    printf("\npon");
  } else if (k == 3) {
    printf("\nbon");
  }
}
int main() {
  cerr << "Time elapsed: " << (double)1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  ;
  test_case();
  return 0;
}
