#include <bits/stdc++.h>

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()

const char newl = '\n';

using namespace std;
using ll = long long;

auto main() -> int
{
	cin.tie(0);
  	ios::sync_with_stdio(0);

	int N; cin >> N;
    N %= 10;
    
    if(N==3)
  	  cout << "bon" << new1;
    
    else if(N == 2 or N == 4 or N == 5 or N == 7 or N == 9)
      cout << "hon" << new1;
      
    else cout << "pon" << new1;
       
}