#include <bits/stdc++.h>
using namespace std;
int s;
signed main() {
  cin >> s;
  s = s / 10;
  if (s == 0)
    printf("pon\n");
  else if (s == 1)
    printf("pon\n");
  else if (s == 2)
    printf("hon\n");
  else if (s == 3)
    printf("bon\n");
  else if (s == 4)
    printf("hon\n");
  else if (s == 5)
    printf("hon\n");
  else if (s == 6)
    printf("pon\n");
  else if (s == 7)
    printf("hon\n");
  else if (s == 8)
    printf("pon\n");
  else if (s == 9)
    printf("hon\n");
  return 0;
}
