#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a;
  a = N%10;
  cout << a << endl;
  if (a==2||a==3||a==5||a==7||a==9) {
    cout << "hon" << endl;
  }
  elif (a==3) {
    cout << "bon" << endl;
  }
  else {
    cout << "pon" << endl;
  }