#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  string s;
  cin >> s;
  if (s[0] == '2' || s[0] == '4' || s[0] == '5' || s[0] == '7' || s[0] == '9') {
    printf("hon\n");
  } else if (s[0] == '0' || s[0] == '1' || s[0] == '6' || s[0] == '8') {
    printf("pon\n");
  } else {
    printf("bon\n");
  }
}
