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