#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  char ch;
  cin >> ch;
  if (ch == '2' || ch == '4' || ch == '5' || ch == '7' || ch == '9')
    cout << "hon\n";
  else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
    cout << "pon\n";
  else
    cout << "bon\n";
}
