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