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