#include<bits/stdc++.h>
using namespaces std;
int main(){
  int n;
  cin>>n;
  string pre;
  string suff="on";
  int rem=0;
  while(n){
    rem=n%10;
    n/=10;
  }
  if(rem==2 or rem==4 or rem==5 or rem==7 or rem==9) pre="h";
  else if(rem==0 or rem==1 or rem==6 or rem==8) pre="p";
  else pre="b";
  cout<<pre+suff<<endl;
  
}