import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int digit; digit digit = n % 10 digit n % 10 n 10 if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        } digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9 digit == 7 digit == 5 digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9 digit == 2 digit 2 digit == 4 digit 4 digit == 5 digit 5 digit == 7 digit 7 digit == 9 digit 9 {
            System.out.println("hon");;

        } System.out.println("hon") System.out.println System.out System System.out "hon" if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        } digit == 0 | digit == 1 | digit == 6 | digit == 8 digit == 6 digit == 0 | digit == 1 | digit == 6 | digit == 8 digit == 0 digit 0 digit == 1 digit 1 digit == 6 digit 6 digit == 8 digit 8 {
            System.out.println("pon");

        } System.out.println("pon") System.out.println System.out System System.out "pon" if (digit == 3){
            System.out.println("bon");

        }else{
            
        } digit == 3 digit 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 sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        int digit;

        digit = n % 10;

        if (digit == 2 | digit == 4 | digit == 5 | digit == 7 | digit == 9){
            System.out.println("hon");;

        } else if (digit == 0 | digit == 1 | digit == 6 | digit == 8){
            System.out.println("pon");

        } else if (digit == 3){
            System.out.println("bon");

        }else{
            
        }
    }
}