#include<iostream>
using namespace std;
{
  int N;
  cin >> N;
  
  if(N = 2,4,5,7,9){
    cout << 'hon';
  }else if{N = 0,1,6,8){
    cout << 'pon';
  }else{
    cout << 'bon';
  }
           return 0;
          }