#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  for (int i = 0; i < 100; i++) {
    for (int j = 0; j < 10; j++) {
      j == 10 * i - a;
      if (j == ((2 || 4) || (5 || 7)) || 9) {
        cout << "hon" << endl;
      } else if (j == ((0 || 1) || (6 || 8))) {
        cout << "pon" << endl;
      } else if (j == 3) {
        cout << "bon" << endl;
      }
    }
  }
}
