#include <bits/stdc++.h>
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(NULL);
  std::cout.tie(NULL);
  int N;
  std::cin >> N;
  if (N == 3)
    std::cout << "bon\n";
  else if (N == 0 or N == 1 or N == 6 or N == 8)
    std::cout << "pon\n";
  else
    std::cout << "hon\n";
  return 0;
}
