#include <bits/stdc++.h>
using namespace std;
int main() {
  int num;
  cin >> num;
  int ans = ans % 10;
  if (ans == 3) {
    cout << "bon" << endl;
    return 0;
  } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
    cout << "pon" << endl;
    return 0;
  } else {
    cout << "hon" << endl;
    return 0;
  }
}
