#include <bits/stdc++.h>
#define ll long long
#define db double
using namespace std;
int main()
{
    int x;
    cin>>x;
    x%=10;
    if(x==3) puts("bon");
    else if(x==1 || x==0 || x==6 || x==8)
        puts("pon");
    else pus("hon");
    return 0;
}
