#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin>>n; string s="on";
  sert<int>a={2,4,5,7,9},b={0,1,6,8};
  n=n%10;
  if(a.count(n)) s.insert(0,'h');
  else if(b.count(n)) s.insert(0,'p');
  else s.insert(0,'b');
  cout<<s<<endl;
}