import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

} main {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		} true {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		} if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			} a >= 10 a 10 {
				a = a - 10;
				
			} a = a - 10 a a - 10 a 10 {
				break;
			} break; if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		} 0 <= a && 10 > a 0 <= a 0 a 10 > a 10 a {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		} String s ; s if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		} a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 7 a == 5 a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 2 a 2 a == 4 a 4 a == 5 a 5 a == 7 a 7 a == 9 a 9 {
				s = "hon";
			} s = "hon" s "hon" if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		} a == 0 || a == 1 || a == 6 || a == 8 a == 6 a == 0 || a == 1 || a == 6 || a == 8 a == 0 a 0 a == 1 a 1 a == 6 a 6 a == 8 a 8 {
				s = "pon";
			} s = "pon" s "pon" {
				s = "bon";
		} s = "bon" s "bon" System.out.println(s) System.out.println System.out System System.out s String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		
		
		while(true) {
			if(a >= 10 ) {
				a = a - 10;
				
			}else {
				break;
			}
			
		}
		if(0 <= a && 10 > a ) {
			String s ;
			if(a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
				s = "hon";
			}
			else if(a == 0 || a == 1 || a == 6 || a == 8 ) {
				s = "pon";
			}else {
				s = "bon";
		}
			System.out.println(s);
		}
		
		
		

}
}
