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