#include <bits/stdc++.h>
using namespace std;

int main(){
  int N;
  cin >> N;
  vector<string> yomi = {
    "pon","pon","hon","bon","hon",
    "hon","pon","hon","pon","hon"};
  cout << yomi[N%10] << endl;
}