#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const long long MX = 1e9;
const long long INF = 1e9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int x = n % 10;
  if (x == 3)
    cout << "bon\n";
  else if (x == 0 || x == 1 || x == 6 || x == 8)
    cout << "pon\n";
  else
    cout << "h1on\n";
  return 0;
}
