#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int a;
  cin >> a;
  if (a % 10 == 0 || a % 10 == 1 || a % 10 == 6 || a % 10 == 8)
    cout << "pon\n";
  else if (a % 3 == 0)
    cout << "bon\n";
  else
    cout << "hon\n";
  return 0;
}
