#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000000 + 7;
int main() {
  int n, i;
  char units[3][4] = {"bon", "pon", "hon"};
  scanf("%d", &n);
  switch (n % 10) {
    case 3:
      i = 0;
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      i = 1;
    default:
      i = 2;
      break;
  }
  printf("%s\n", units[i]);
  return 0;
}
