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