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