#include <bits/stdc++.h>
int main() {
  int n;
  int ans;
  std::cin >> n;
  if (n >= 10) {
    ans = n - (n / 10) * 10;
  }
  if (ans == 3) {
    std::cout << "bon" << std::endl;
  } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
    std::cout << "pon" << std::endl;
  } else {
    std::cout << "hon" << std::endl;
  }
  return 0;
}
