#include <bits/stdc++.h>
template <typename... Ts>
void read(Ts&... vs) {
  (std::cin >> ... >> vs);
}
int main() {
  std::size_t N;
  read(N);
  switch (N % 10) {
    case 3: {
      std::cout << "bon" << std::endl;
      break;
    }
    case 0:
    case 1:
    case 6:
    case 8: {
      std::cout << "hon" << std::endl;
      break;
    }
    default: {
      std::cout << "pon" << std::endl;
      break;
    }
  }
  return 0;
}
