#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 10;
int main() {
  long long int N;
  scanf("%lld", &N);
  long long int x = N % 10;
  if (x == 2 || x == 4 || x == 5 || x == 7 || x == 7) {
    printf("hon\n");
    return 0;
  } else if (x == 0 || x == 1 || x == 6 || x == 8) {
    printf("pon\n");
    return 0;
  } else
    printf("bon\n");
  return 0;
}
