#include <bits/stdc++.h>
using namespace std;

int main (){
    int N;
    cin >> N;
    if(N == 3){
        cout << "bon" << endl;
    }  
    else if(N == 8){
        cout << "pon" << endl;
    }  
    else if(N == 6){
        cout << "pon" << endl;
    }  
    else if(N == 1){
        cout << "pon" << endl;
    }  
    else if(N == 0){
        cout << "pon" << endl;
    }  
    else{
        cout << "hon" << endl;
    }
}