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

int main() {
  int N;
  cin >> N;
  int a = N.size();
  if(N.at(a - 1) == 3) {
    cout << N << "bon" << endl;
  }
  else if(N.at(a - 1) == 0 || 1 || 6 || 8 ) {
    cout << N << "pon" << endl;
  }
  else {
    cout << N << "hon" << endl;
  }
  
  
}
