#include <bits/stdc++.h>
int main() {
  std::string S;
  std::cin >> S;
  int a = S[0] - '0';
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
    std::cout << "hon" << std::endl;
  } else if (a == 0 || a == 1 || a == 6 || a == 8) {
    std::cout << "pon" << std::endl;
  } else {
    std::cout << "bon" << std::endl;
  }
  return 0;
}
