#include<bits/stdc++.h>
#define ll long long int
#define ld long double
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
using namespace std;
const int MOD = 1000000007; 
const int N = 200005;


int main(){
    fast;
    string s;
    cin >> s;
    if(s[s.size()-1] == '2' || s[s.size()-1] == '5' || s[s.size()-1] == '7' || s[s.size()-1] == '4' || s[s.size()-1] == '9')
        cout << "hon";
    else if(s[s.size()-1] == '0' || s[s.size()-1] == '1' || s[s.size()-1] == '6' || s[size() - 1] == '8')
        cout << "pon";
    else
        cout << "bon";
    return 0;
}