#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<string> s;
  s = {"p", "p", "h", "b", "h", "h", "p", "h", "p", "h"};
  cin >> n;
  int x = n % 10;
  cout << s[x] << "on" << endl;
}
