#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, keta;
  cin >> N;
  switch (N % 10) {
    case 0:
    case 1:
    case 6:
    case 8:
      cout << "pon";
    case 3:
      cout << "bon";
    default:
      cout << "hon";
  }
}
