import java.util.*; 
import java.io.*;

public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main static StringTokenizer st; st static BufferedReader br; br static PrintWriter out; out public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    } main {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) int N = nextInt(); N nextInt() nextInt String S= ("" + N); S ("" + N) "" N String s = S.substring(S.length()-1); s S.substring(S.length()-1) S.substring S S.length()-1 S.length() S.length S 1 if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        } s.equals("3") s.equals s "3" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        } s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8") s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8") s.equals("0") s.equals s "0" s.equals("1")|s.equals("6") s.equals("1") s.equals s "1" s.equals("6") s.equals s "6" s.equals("8") s.equals s "8" {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public static long nextLong() throws IOException {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    } nextDouble {
        return Double.parseDouble(next());
    } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } next {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(br.readLine().trim()) st new StringTokenizer(br.readLine().trim()) return st.nextToken(); st.nextToken() st.nextToken st public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main
import java.util.*; 
import java.io.*;

public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        
        int N = nextInt();
        
        String S= ("" + N);
        String s = S.substring(S.length()-1);

        if(s.equals("3")){
            System.out.println("bon");
        } 
        else if(s.equals("0")||s.equals("1")|s.equals("6")||s.equals("8")){
            System.out.println("pon");
        } 
        else{
            System.out.println("hon");
        }


    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
}