#include <bits/stdc++.h>
int main() {
  int num{};
  std::cin >> num;
  int digit = 0;
  while (num != 0) {
    num /= 10;
    digit++;
  }
  int ans = num / (digit * 10);
  if (ans == 3) {
    std::cout << "hon";
  } else if (ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
    std::cout << "hon";
  } else {
    std::cout << "pon";
  }
}
