#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  switch (N % 10) {
    case 3:
      printf("bon\n");
      break;
    case 0:
    case 1:
    case 6:
    case 8:
      printf("pon\n");
    case 2:
    case 4:
    case 5:
    case 7:
    case 9:
      printf("hon\n");
  }
EndPoint:;
  system("pause");
  return 0;
}
