import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    } main {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    } BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); br new BufferedReader(new java.io.InputStreamReader(System.in)) PrintWriter pw = new PrintWriter(System.out); pw new PrintWriter(System.out) String N = br.readLine(); N br.readLine() br.readLine br String target = N.substring(N.length() - 1); target N.substring(N.length() - 1) N.substring N N.length() - 1 N.length() N.length N 1 if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        } "2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target) "7".equals(target) "5".equals(target) "2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target) "2".equals(target) "2".equals "2" target "4".equals(target) "4".equals "4" target "5".equals(target) "5".equals "5" target "7".equals(target) "7".equals "7" target "9".equals(target) "9".equals "9" target {
            pw.println("hon");
        } pw.println("hon") pw.println pw "hon" if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        } "0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target) "6".equals(target) "0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target) "0".equals(target) "0".equals "0" target "1".equals(target) "1".equals "1" target "6".equals(target) "6".equals "6" target "8".equals(target) "8".equals "8" target {
            pw.println("pon");
        } pw.println("pon") pw.println pw "pon" {
            pw.println("bon");
        } pw.println("bon") pw.println pw "bon" br.close() br.close br pw.close() pw.close pw String[] args args public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    }
} public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;

public class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));
        PrintWriter pw = new PrintWriter(System.out);
        
        String N = br.readLine();
        String target = N.substring(N.length() - 1);
        
        if("2".equals(target) || "4".equals(target) || "5".equals(target) || "7".equals(target) || "9".equals(target)) {
            pw.println("hon");
        } else if("0".equals(target) || "1".equals(target) || "6".equals(target) || "8".equals(target)) {
            pw.println("pon");
        } else {
            pw.println("bon");
        }

        br.close();
        pw.close();
    }
}