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