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


int main(){
  vector<string> hon = {"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};

  int n;
  cin >> n;
  n = n % 10;

  cout << hon[n] << endl;
}