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