#include <bits/stdc++.h>
using namespace std;
int dt[][2] = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}, {0, 0}};
int main() {
  int n;
  scanf("%d", &n);
  int p = n % 10;
  if (p == 3) printf("bon");
  if (p == 0 || p == 1 || p == 6 || p == 8)
    printf("pon");
  else
    printf("hon");
}
