#include <bits/stdc++.h>
using namespace std;
using P = pair<int, int>;
using ll = long long;
const int INF = 100005;
const int MAX_K = 55;
const int MAX_W = 200005;
int dp[205][205];
int main() {
  string s;
  cin >> s;
  int n = s.size();
  int a = s[n - 1];
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
    cout << "hon" << endl;
  } else if (a == 3) {
    cout << "bon" << endl;
  } else {
    cout << "pon" << endl;
  }
}
