import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    }
} Main public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    } main {
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int n = stdIn.nextInt(); n stdIn.nextInt() stdIn.nextInt stdIn int x = n % 10; x n % 10 n 10 if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        } n < 1000 n 1000 {
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        } if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            } x == 2 || x == 4 || x == 5 || x == 7 || x == 9 x == 7 x == 5 x == 2 || x == 4 || x == 5 || x == 7 || x == 9 x == 2 x 2 x == 4 x 4 x == 5 x 5 x == 7 x 7 x == 9 x 9 {
                System.out.println("hon");
            } System.out.println("hon") System.out.println System.out System System.out "hon" if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            } x == 0 || x == 1 || x == 6 || x == 8 x == 6 x == 0 || x == 1 || x == 6 || x == 8 x == 0 x 0 x == 1 x 1 x == 6 x 6 x == 8 x 8 {
                System.out.println("pon");
            } System.out.println("pon") System.out.println System.out System System.out "pon" if(x == 3){
                System.out.println("bon");
            } x == 3 x 3 {
                System.out.println("bon");
            } System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int n = stdIn.nextInt();
        int x = n % 10;
        if(n < 1000){
            if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9){
                System.out.println("hon");
            }
            if(x == 0 || x == 1 || x == 6 || x == 8){
                System.out.println("pon");
            }
            if(x == 3){
                System.out.println("bon");
            }
        }
    }
}