#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = INT_MAX;
const int ninf = INT_MIN;
const int mod = 1e9 + 7;
const int N = 1e5 + 2;
int main() {
  string util[] = {"pon", "pon", "hon", "bon", "hon",
                   "hon", "pon", "hon", "pon"};
  int n;
  scanf("%d", &n);
  cout << util[n % 10];
  return 0;
}
