import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    } main {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    } Scanner scn = new Scanner(System.in); scn new Scanner(System.in) int i = scn.nextInt(); i scn.nextInt() scn.nextInt scn scn.close() scn.close scn int x = i % 10; x i % 10 i 10 if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        } x == 3 x 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        } 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" {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        // 数値の取得
        Scanner scn = new Scanner(System.in);
        int i = scn.nextInt();
        scn.close();
        
        //一の位の取得
        int x = i % 10;
        
        //一の位に応じた分岐
        if(x == 3) {
            System.out.println("bon");
        } else if(x == 2 || x == 4 || x == 5 || x == 7 || x == 9) {
            System.out.println("hon");
        } else {
            System.out.println("pon");
        }
    }
}