import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


import static java.lang.System.in;

class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int N = Integer.parseInt(reader.readLine());
        switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import static java.lang.System.in; import static java.lang.System.in; import static java.lang.System.in; class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int N = Integer.parseInt(reader.readLine());
        switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        }
    }
} Main public static void main(String[] args)throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int N = Integer.parseInt(reader.readLine());
        switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        }
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int N = Integer.parseInt(reader.readLine());
        switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        }
    } BufferedReader reader = new BufferedReader(new InputStreamReader(in)); reader new BufferedReader(new InputStreamReader(in)) int N = Integer.parseInt(reader.readLine()); N Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        } N%10 N 10 case 2: 2 case 2: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 4: 4 case 4: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 5: 5 case 5: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 7: 7 case 7: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 9: 9 case 9: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 0: 0 case 0: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 1: 1 case 1: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 6: 6 case 6: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


import static java.lang.System.in;

class Main {
    public static void main(String[] args)throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(in));
        int N = Integer.parseInt(reader.readLine());
        switch(N%10){
            case 2:
                System.out.println("hon");
                break;
            case 4:
                System.out.println("hon");
                break;
            case 5:
                System.out.println("hon");
                break;
            case 7:
                System.out.println("hon");
                break;
            case 9:
                System.out.println("hon");
                break;
            case 0:
                System.out.println("pon");
                break;
            case 1:
                System.out.println("pon");
                break;
            case 6:
                System.out.println("pon");
                break;
            case 8:
                System.out.println("pon");
                break;
            case 3:
                System.out.println("bon");
                break;

        }
    }
}
