#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int N;
    cin >> N;
    
    switch(N%10){
    	case 2,4,5,7,9:
        	cout << "hon" << endl;
            break;
        case 0,1,6,8:
        	cout << "pon" << endl;
            break;
        case 3:
        	cout << "bon" << endl;
            break;
     }      	
    
}