#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  char ans;
  switch (N % 10) {
    case 3:
      ans = 'b';
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      ans = 'p';
      break;
    defualt:
      ans = 'h';
      break;
  }
  cout << ans << "on";
}
