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