#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, a;
  cin >> N;
  a=N&10
  if(a=3){
    cout<<"bon"<<endl;
  }
  else if(a=0||1||6||8){
    cout<<"pon"<<endl;
  }
  else{
    cout<<"hon"<<endl;
  }
  
}
