#include<cstudio>
#include<stdlib.h>
using nanespace std;
int main() {
int n, r;
scanf("%d", &n);
if(n/10 != 0) {
r = n%10;
} else {
r=n;
}
if(r == 3){
printf("%s","bon");
}else if(r==0 || r==1 || r==6||r==8){
printf("%s","pon");
}else{
printf("%s","hon");
}
}