import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char c = s.charAt(s.length()-1); c s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon"); c=='2'||c=='4'||c=='5'||c=='7'||c=='9' c=='7' c=='5' c=='2'||c=='4'||c=='5'||c=='7'||c=='9' c=='2' c '2' c=='4' c '4' c=='5' c '5' c=='7' c '7' c=='9' c '9' System.out.println("hon") System.out.println System.out System System.out "hon" if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon"); c=='0'||c=='1'||c=='6'||c=='8' c=='6' c=='0'||c=='1'||c=='6'||c=='8' c=='0' c '0' c=='1' c '1' c=='6' c '6' c=='8' c '8' System.out.println("pon") System.out.println System.out System System.out "pon" System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char c = s.charAt(s.length()-1);
        if (c=='2'||c=='4'||c=='5'||c=='7'||c=='9')
             System.out.println("hon");
        else if(c=='0'||c=='1'||c=='6'||c=='8')
             System.out.println("pon");
        else System.out.println("bon");
    }
}
