#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 9223372036854775807;
const long long mininf = -9223372036854775807;
const long long nax = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  int n;
  cin >> n;
  int huruf = n % 10;
  if (huruf == 3) {
    cout << "bon" << '\n';
  } else if (huruf == 0 or huruf == 1 or huruf == 6 or huruf == 8) {
    cout << "pon" << '\n';
  } else {
    cout << "hon" << '\n';
  }
}
