import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    String N;
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    }
    
    //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    String N;
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    }
    
    //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} Main //フィールド
    Scanner sc; sc String N; N public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main m = new Main(sc); m new Main(sc) m.show(m.solve()) m.show m m.solve() m.solve m sc.close() sc.close sc String[] args args //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    } Main {
        this.sc = sc;
        this.N = sc.next();
    } this.sc = sc this.sc this this.sc sc this.N = sc.next() this.N this this.N sc.next() sc.next sc Scanner sc sc //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    } solve {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    } String answer = null; answer null int n = Integer.parseInt(N.substring(N.length()-1, N.length())); n Integer.parseInt(N.substring(N.length()-1, N.length())) Integer.parseInt Integer N.substring(N.length()-1, N.length()) N.substring N N.length()-1 N.length() N.length N 1 N.length() N.length N if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        } n==2 || n==4 || n==5 || n==7 || n==9 n==7 n==5 n==2 || n==4 || n==5 || n==7 || n==9 n==2 n 2 n==4 n 4 n==5 n 5 n==7 n 7 n==9 n 9 {
        	answer = "hon";
        } answer = "hon" answer "hon" if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        } n==0 || n==1 || n==6 || n==8 n==6 n==0 || n==1 || n==6 || n==8 n==0 n 0 n==1 n 1 n==6 n 6 n==8 n 8 {
        	answer = "pon";
        } answer = "pon" answer "pon" if (n==3){
        	answer = "bon";
        } n==3 n 3 {
        	answer = "bon";
        } answer = "bon" answer "bon" return answer; answer //出力
    public void show(String answer) {
        System.out.println(answer);
    } show {
        System.out.println(answer);
    } System.out.println(answer) System.out.println System.out System System.out answer String answer answer public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    String N;
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    }
    
    //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    String N;
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    }
    
    //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        Main m = new Main(sc);
        m.show(m.solve());
        sc.close();
    }
    
	//フィールド
    Scanner sc;
    String N;
    
    //入力
    Main(Scanner sc) {
        this.sc = sc;
        this.N = sc.next();
    }
    
    //解答処理
    private String solve() {
        String answer = null;
        int n = Integer.parseInt(N.substring(N.length()-1, N.length()));
        if (n==2 || n==4 || n==5 || n==7 || n==9 ) {
        	answer = "hon";
        } else if (n==0 || n==1 || n==6 || n==8){
        	answer = "pon";
        } else if (n==3){
        	answer = "bon";
        }
        
        return answer;
    }
    
    //出力
    public void show(String answer) {
        System.out.println(answer);
    }

}
