#include <bits/stdc++.h>
int main() {
  int N;
  std::cin >> N;
  int a;
  a = N % 10;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
    std::cout << "hon" << std::endl;
  }
  if (a == 0 || a == 1 || a == 6 || a == 8) {
    std::cout << "pon" << std::endl;
  } else {
    std::cout << "bon" << std::endl;
  }
}
