#include<iostream>

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