#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string s;
  cin >> s;
  if (s[0] == '1' || s[0] == '0' || s[0] == '6' || s[0] == '8') {
    cout << "pon";
  } else if (s[0] == '3') {
    cout << "bon";
  } else {
    cout << "hon";
  }
}
