#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
cin.tie(0);
int n,k;
cin >>n;
k=n%10;
if(k=2||k=4||k=6||k=7||k=0)cout << "hon";
else if(k==3)cout <<"bon";
else cout <<"pon";

return 0;
}