#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  cout << s[s.size() - 1] << endl;
  if (s[s.size() - 1] == '3') {
    cout << "bon" << endl;
  } else if (s[s.size() - 1] == '0' || s[s.size() - 1] == '1' ||
             s[s.size() - 1] == '6' || s[s.size() - 1] == '8') {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
