#include <bits/stdc++.h>
using namespace std;
char a[1000];
int m, k;
int main() {
  scanf("%s", a);
  k = strlen(a);
  k -= 1;
  if (a[k] == '2' || a[k] == '5' || a[k] == '7' || a[k] == '9') {
    cout << "hon" << endl;
  } else if (a[k] == '0' || a[k] == '1' || a[k] == '6' || a[k] == '8') {
    cout << "pon" << endl;
  } else if (a[k] == '3') {
    cout << "bon" << endl;
  }
}
