    #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
      int a; cin >> a;
      int size = ceil(log10(a));
      for(int i=0;i<size;++i){
        a = a / 10;
      }
      
      if(a==3){
      	cout << "bon";
      } else if (a==0 ||a= 1||a= 6 ||a= 8){
      	cout << "pon";
      } else {
      	cout << "hon";
      }
    }