import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    } main {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt() % 10; a sc.nextInt() % 10 sc.nextInt() sc.nextInt sc 10 String ans = ""; ans "" if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        } a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 7 a == 5 a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 2 a 2 a == 4 a 4 a == 5 a 5 a == 7 a 7 a == 9 a 9 {
          ans = "hon";
        } ans = "hon" ans "hon" if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        } a == 0 || a == 1 || a == 6 || a == 8 a == 6 a == 0 || a == 1 || a == 6 || a == 8 a == 0 a 0 a == 1 a 1 a == 6 a 6 a == 8 a 8 {
          ans = "pon";
        } ans = "pon" ans "pon" if(a == 3){
          ans = "bon";
        } a == 3 a 3 {
          ans = "bon";
        } ans = "bon" ans "bon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    }
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int a = sc.nextInt() % 10;
        String ans = "";
      
        if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9){
          ans = "hon";
        }else if(a == 0 || a == 1 || a == 6 || a == 8){
          ans = "pon";
        }else if(a == 3){
          ans = "bon";
        }
        
      	System.out.println(ans);
 
    }
}