#define _USE_MATH_DEFINES
#include  <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include<math.h>
#include<iomanip>
#include<stdio.h>
#include <stdlib.h>
#include<stdio.h>
#include <queue>
#include<map>
#include <sstream>
#include<set>
#include<stack>
 
//#include<bits/stdc++.h>
 
 
using namespace std;
 
 
 
int main()
{
    int n;
  cin>>n;
  int a=n%10;
  if(a==3)cout<<"bon"<<endl;
  else if(a==0||a==1||a==6||a==8)cout<<"pon"<<endl;
  else cout<<"hon"<<endkl
    return 0;
 
}