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