import java.util.*;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    }
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    } main {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int Nm = N % 10; Nm N % 10 N 10 String ans = "hon"; ans "hon" if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        } Nm == 3 Nm 3 {
            ans = "bon";
        } ans = "bon" ans "bon" if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        } Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8 Nm == 6 Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8 Nm == 0 Nm 0 Nm == 1 Nm 1 Nm == 6 Nm 6 Nm == 8 Nm 8 {
            ans = "pon";
        } ans = "pon" ans "pon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    }
} Main
import java.util.*;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int Nm = N % 10;
        
        String ans = "hon";
        if(Nm == 3) {
            ans = "bon";
        } else if(Nm == 0 || Nm == 1 || Nm == 6 || Nm == 8) {
            ans = "pon";
        }
        
        System.out.println(ans);
    }
}
