import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(reader.readLine()); N Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader int t = N%10; t N%10 N 10 if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	} t==0 || t==1 || t==6||t==8 t==6 t==0 || t==1 || t==6||t==8 t==0 t 0 t==1 t 1 t==6 t 6 t==8 t 8 {
		System.out.println("pon");
		return;
	} System.out.println("pon") System.out.println System.out System System.out "pon" return; if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	} t==3 t 3 {
		System.out.println("bon");
		return;
	} System.out.println("bon") System.out.println System.out System System.out "bon" return; {
	System.out.println("hon");
	return;
	} System.out.println("hon") System.out.println System.out System System.out "hon" return; String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	}
} Main
import java.util.*;
import java.io.*;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
	int N = Integer.parseInt(reader.readLine());
	int t = N%10;
	if(t==0 || t==1 || t==6||t==8){
		System.out.println("pon");
		return;
	}
	else if(t==3){
		System.out.println("bon");
		return;
	}
	else{
	System.out.println("hon");
	return;
	}
	}
}
