#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  const int x = static_cast<int>(std::to_string(N).back());
  const std::string ret = x == 2 || x == 4 || x == 5 || x == 7 || x == 9 ? "hon"
                          : x == 0 || x == 1 || x == 6 || x == 8         ? "pon"
                                                                 : "bon";
  std::cout << ret << std::endl;
}
