#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int ichi;
  cin >> N;
  ichi = N % 10;
  switch (ichi) {
    case (0, 1, 6, 8):
      cout << "pon" << endl;
      break;
    case (2, 4, 5, 7, 9):
      cout << "hon" << endl;
      break;
    case (3):
      cout << "bon" << endl;
      break;
  }
  return 0;
}
