#include<bits/stdc++.h>
typedef long long ll;
#define moot 1000000007

using namespace std;

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
    int N;
    cin>>N;
    int ones = N % 10;
    if(one == 2 || one == 4 || one == 5 || one == 7 || one == 9)
      cout<<"hon";
    else if(one == 0 || one == 1 || one == 6 || one == 8)
      cout<<"pon";
    else
      cout<<"bon";
    
  return 0;  
}