#include <iostream>
#include <stdio.h>
#include <string>
using namespace std;


void solve(long long N){

}

// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    string N;
    cin >> N;
    string n = N[N.size()-1];

    char hon[]  = {'2', '4', '5', '7', '9'};
    char pon[] = {'0', '1', '6', '8'};
    char bon = '3';
    
    for(int i = 0; i <= 5; i++) {
        if(hon[i] == n) {
            cout << "hon" << endl;
            return 0;
        }
    }
    for(int i = 0; i <= 4; i++) {
        if(pon[i] == n) { 
            cout << "pon" << endl;
            return 0;
        }
    }
    cout << "bon" << endl;
    return 0;
}
