import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    }
} Main public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    } main {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String N = br.readLine(); N br.readLine() br.readLine br if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	} N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9") N.endsWith("7") N.endsWith("5") N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9") N.endsWith("2") N.endsWith N "2" N.endsWith("4") N.endsWith N "4" N.endsWith("5") N.endsWith N "5" N.endsWith("7") N.endsWith N "7" N.endsWith("9") N.endsWith N "9" {
	    System.out.println("hon");
	} System.out.println("hon") System.out.println System.out System System.out "hon" if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	} N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8") N.endsWith("6") N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8") N.endsWith("0") N.endsWith N "0" N.endsWith("1") N.endsWith N "1" N.endsWith("6") N.endsWith N "6" N.endsWith("8") N.endsWith N "8" {
	    System.out.println("pon");
	} System.out.println("pon") System.out.println System.out System System.out "pon" {
	    System.out.println("bon");
	} 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[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    }
} public class Main {
    public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String args[]) throws IOException {

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String N = br.readLine();

	if (N.endsWith("2") || N.endsWith("4") || N.endsWith("5") || N.endsWith("7") || N.endsWith("9")) {
	    System.out.println("hon");
	} else if (N.endsWith("0") || N.endsWith("1") || N.endsWith("6") || N.endsWith("8")) {
	    System.out.println("pon");
	} else {
	    System.out.println("bon");
	}
    }
}
