#include <bits/stdc++.h>
using namespace std;
int arr[1000];
int main() {
  int n, cnt = 0;
  map<int, string> mp;
  mp[2] = "hon", mp[4] = "hon";
  mp[5] = "hon", mp[7] = "hon";
  mp[9] = "hon", mp[0] = "pon";
  mp[1] = "hon", mp[6] = "pon";
  mp[8] = "hon", mp[3] = "bon";
  cin >> n;
  int k = n % 10;
  cout << mp[k] << endl;
  return 0;
}
