#include <bits/stdc++.h>
using namespace std;
using lint = long long;
using p = pair<int, int>;
template <class T>
bool chmax(T &a, const T &b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
bool chmin(T &a, const T &b) {
  if (b < a) {
    a = b;
    return 1;
  }
  return 0;
}
int main() {
  int N;
  scanf("%d", &N);
  int mod = N % 10;
  if (mod == 0 || mod == 1 || mod == 6 || mod == 8) {
    cout << "pon" << endl;
  } else if (mod == 3) {
    cout << "bon" << endl;
  } else {
    cout << "pon" << endl;
  }
  return 0;
}
