#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans, total, cnt, t;
  scanf("%d", &n);
  t = n % 10;
  printf("%d\n", t);
  if (t == 2 || t == 4 || t == 7 || t == 9)
    printf("hon\n");
  else if (t == 0 || t == 1 || t == 6 || t == 8)
    printf("pon\n");
  else if (t == 3)
    printf("bon\n");
  return 0;
}
