//g++ -std=gnu++14 a.cpp
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <iostream>
#include <istream>
#include <iterator>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#include <tuple>
#include <iomanip>
#include <random>
#include <math.h>
#include <stdio.h>

using namespace std;

#define ll long long
#define rep(i, n) for(ll i = 0; i < (n); i++)
ll MOD = 1e9 + 7;
int INF = 1 << 30;
ll INFL = 1LL << 60;

int main(){
  int n;
  cin >> n;
  int iti = n%10;
  if(iti==2&&iti==4&&iti=5&&iti==7&&iti==9)cout << "hon" << endl;
  else if(iti==0&&iti==1&&iti==6&&iti==8)cout << "pon" << endl;
  else cout << "bon" << endl;
}
