import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

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

    static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

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

    static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

        if(a == 3) {
            System.out.println("bon");
        } else if( a== 0 || a == 1 || a == 6 || a == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } main {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

        if(a == 3) {
            System.out.println("bon");
        } else if( a== 0 || a == 1 || a == 6 || a == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int d = s.nextInt(); d s.nextInt() s.nextInt s int  a = d % 10; a d % 10 d 10 if(a == 3) {
            System.out.println("bon");
        } else if( a== 0 || a == 1 || a == 6 || a == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } a == 3 a 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if( a== 0 || a == 1 || a == 6 || a == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } a== 0 || a == 1 || a == 6 || a == 8 a == 6 a== 0 || a == 1 || a == 6 || a == 8 a== 0 a 0 a == 1 a 1 a == 6 a 6 a == 8 a 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 static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    } getDigit {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    } int d = 0; d 0 while(n > 0){
            d = n % 10;
            n /= 10;
        } n > 0 n 0 {
            d = n % 10;
            n /= 10;
        } d = n % 10 d n % 10 n 10 n /= 10 n 10 return d; d int n n public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

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

    static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

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

    static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int d = s.nextInt();
        int  a = d % 10;

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

    static int getDigit(int n) {
        int d = 0;
        while(n > 0){
            d = n % 10;
            n /= 10;
        }
        return d;
    }
}