#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
  int n;
  cin >> n;
  int out = n%10;
  string output;
  if(out == 3)
    output = "bon";
  else if(out == 0 || out ==1 || out==6 || out ==8)
    output = "pon";
  else
    output = "hon";
  cout << output;