#include <bits/stdc++.h>
int main() {
  int x, p;
  std::cin >> x;
  p = x - (x / 10) * 10;
  if (p == 3) {
    std::cout << "bon"
              << "\n";
  } else if (p == 2 || p == 4 || p == 5 || p == 7 || p == 9) {
    std::cout << "pon"
              << "\n";
  } else {
    std::cout << "hon"
              << "\n";
  }
  return 0;
}
