#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  string s;
  cin >> s;
  int x = s.back();
  if (x == 3)
    cout << "bon\n";
  else if (x == 0 || x == 1 || x == 6 || x == 8)
    cout << "pon\n";
  else
    cout << "hon\n";
}
