import 'dart:io'

vor line = stdin.readLineSync(encoding: Encoding.getByName('utf-8'));
int numLine = int.parse(line);
int num = numLine % 10;
if (num==3){
	print('bon');
}else if(num==0 || num == 1 || num == 6 || num == 8){
	print('pon');
}else{
	print('hon');
}