#include <bits/stdc++.h>
using namespace std;

int main() {
  char NumStr;
  cin >> NumStr;
  char x = NumStr[2];
  int n = atoi(x.c_str());
  if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) {
    cout << "hon" << endl;
    if(n == 0 || n == 1 || n == 6 || n == 8) {
      cout << "pon" << endl;
    }
    else
      cout << "bon" << endl;
  }
  return 0;
}
