import java.util.*;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  String[]a=new String[]{"pon","pon","hon","bon","hon","hon","hon","hon","hon","hon","hon","hon","hon",};
  int n=sc.nextInt()%10;
  System.out.println(a[n]);
}
}
