#include <bits/stdc++.h>
using namespace std;
const int mod = (int)1e9 + 7, INF = (int)1e9;
const int di[4] = {1, 0, -1, 0}, dj[4] = {0, 1, 0, -1};
int main(void) {
  int n;
  string ans;
  scanf("%d", &n);
  if (n % 10 == 3) {
    ans = "bon";
  } else if ((n % 10) * (n % 10 - 1) * (n % 10 - 6) * (n % 10 - 8) == 0) {
    ans = "pon";
  } else {
    ans = "pon";
  }
  cout << ans << '\n';
  return 0;
}
