import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } main {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } Scanner c = new Scanner(System.in); c new Scanner(System.in) int target = c.nextInt(); target c.nextInt() c.nextInt c String t = target+""; t target+"" target "" int first = Integer.parseInt(t.substring(t.length()-1)); first Integer.parseInt(t.substring(t.length()-1)) Integer.parseInt Integer t.substring(t.length()-1) t.substring t t.length()-1 t.length() t.length t 1 if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } first == 3 first 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } first == 0 || first == 1 || first == 6 || first == 8 first == 6 first == 0 || first == 1 || first == 6 || first == 8 first == 0 first 0 first == 1 first 1 first == 6 first 6 first == 8 first 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 class Main {
    public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner c = new Scanner(System.in);
        int target = c.nextInt();
        String t = target+"";
        int first = Integer.parseInt(t.substring(t.length()-1));
        if(first == 3){
            System.out.println("bon");
        }else if(first == 0 || first == 1 || first == 6 || first == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
}