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

int main() {
  int x, y;
  cin >> x;
  y = (x % 10;)
  if(y == 3){
    cout << "bon" << endl;
    if(y == 0 || y == 1 || y == 6 || y == 8){
      cout << "pon" << endl;
    }
    else {
      cout << "hon" << endl;
    }
  }
  return 0;
}
      
  
