#include <bits/stdc++.h>
using namespace std;

std::vector<int> GetDigits(int n) {
  std::vector<int> result;
  while (n) {
    result.push_back(n%10);
    n /= 10;
  }
  std::reverse(result.begin(), result.end());
  return result;
}

int main() {
  int n;
  std::cin >> n;
  std::vector<int> digits = GetDigits(n);
  if (digits[0] == 3) {
    std::cout << "bon" << std::endl;
  else if (digits[0] == 0 || digits[0] == 1 || digits[0] == 6 || digits[0] == 8) {
    std::cout << "pon" << std::endl;
  }
  else {
    std::cout << "hon" << std::endl;
  }
}
}