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