#include <bits/stdc++.h>
using namespace std;

#define RAPIDA ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

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