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

int main() {
  string N;
  cin>>N;
  int long1=N.size()-1
  if(N.at(long1)=='2'||N.at(long1)=='4'||N.at(long1)=='5'||N.at(long1)=='7'||N.at(long1)=='9'){
    cout<<"hon"<<endl;
  }
  else if(N.at(long1)=='0'||N.at(long1)=='1'||N.at(long1)=='6'||N.at(long1)=='8'){
    cout<<"pon"<<endl;
  }
  else{
    cout<<"bon"<<endl;
  }
}
