#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, k;
  char n[3];
  cin >> n;
  if (n[2] == '2' || n[2] == '4' || n[2] == '5' || n[2] == '7' || n[2] == '9')
    cout << "hon" << endl;
  else if (n[2] == '0' || n[2] == '1' || n[2] == '6' || n[2] == '8')
    cout << "pon" << endl;
  else if (n[2] == '3')
    cout << "bon" << endl;
}
