#include <bits/stdc++.h>
using namespace std;
string saffix;
int N;
int main() {
  std::cin >> N;
  N = N % 10;
  if (N == 3) {
    saffix = "bon";
  } else if (N == 0 || N == 1 || N == 6 || N == 10) {
    saffix = "pon";
  } else {
    saffix = "hon";
  }
  std::cout << saffix;
}
