#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[3];
  int x = 2;
  cin >> a;
  if (a[2] == '\n')
    x = 1;
  else if (a[1] == '\n')
    x = 0;
  if (a[x] == '2' || a[x] == '4' || a[x] == '5' || a[x] == '7' || a[x] == '9')
    cout << "hon";
  else if (a[x] == '0' || a[x] == '1' || a[x] == '6' || a[x] == '8')
    cout << "pon";
  else
    cout << "bon";
  return 0;
}
