#include <bits/stdc++.h>
using namespace std;
void FLASH() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
void SETF() {
  cout.ios_base::setf(ios_base::fixed);
  cerr.ios_base::setf(ios_base::fixed);
}
void UNSETF() {
  cout.ios_base::unsetf(ios_base::fixed);
  cerr.ios_base::unsetf(ios_base::fixed);
}
bool sortinrev(const pair<long long int, long long int> &a,
               const pair<long long int, long long int> &b) {
  return (a.first > b.first);
}
long long int A[1000000];
long long int B[1000000];
map<int, vector<int> > node;
int main() {
  FLASH();
  map<long long int, string> mp;
  long long int n;
  cin >> n;
  mp[2] = "hon";
  mp[4] = "hon";
  mp[5] = "hon";
  mp[7] = "hon";
  mp[9] = "hon";
  mp[0] = "pon";
  mp[1] = "pon";
  mp[6] = "pon";
  mp[8] = " ";
  mp[3] = "bon";
  cout << mp[n % 10] << endl;
  return 0;
}
