#include <iostream>

using namespace std;

int main() {
  int N,m;
  cin >> N;
  
  m=1000%N;
  
  if(m==3){
    cont << "bon";
  }else if(m==0 || m==1 || m==6 || m==8){
    cont << "pon";
  }else{
    cont << "hon";
  }
  return 0;
}