include <bits/stdc++.h>
#define ref(i,n) for(int i=0;i<n;i++)
using namespace std;
#define INF 10000000
int a[200001],b[200001];
int main()
{
    int n;
    cin>>n;
    int x=n%10;
    if(x==2||x==4||x==7||x==9||x==5) cout<<"jon";
    else if(x==3) cout<<"bon";
    else cout<<"pon";
    return 0;
    
}
