#include <bits/stdc++.h>

using namespace std;

int main(){
  int n;
  cin >> n;
  int out;
  while(n>0){
    if(n/10 == 0) out=n;
    else n= n%10;
  }
  string output;
  if(out == 2 || out == 4 || out == 5 || out == 7 || out == 9)
    output = "hon";
  else if(out == 0 || out ==1 || out==6 || out ==8)
    output = "pon";
  else
    output = "bon";
  cout << output;
    