#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int ones = n % 10;
  if (ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9) {
    printf("pon");
  } else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) {
    printf("bon");
  }
}
