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