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

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