int main() {
    int num;
    cin >> num;
    num = num % 10;

    if(num == 3) {
        cout << "bon" << endl;
    } else if(num == 0 || num == 1 || num == 6 || num == 8) {
        cout << "pon" << endl;
    } else {
        cout << "hon" << endl;
    }
    
    return 0;

}