import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	} main {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String N = scan.next(); N scan.next() scan.next scan char[] X = N.toCharArray(); X N.toCharArray() N.toCharArray N char NLast1= X[X.length-1] ; NLast1 X[X.length-1] X X.length-1 X.length X X.length 1 int NLast = Character.getNumericValue(NLast1); NLast Character.getNumericValue(NLast1) Character.getNumericValue Character NLast1 if(NLast==2) {
			System.out.println("hon");
		} NLast==2 NLast 2 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(NLast==4) {
			System.out.println("hon");
		} NLast==4 NLast 4 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(NLast==5) {
			System.out.println("hon");
		} NLast==5 NLast 5 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(NLast==7) {
			System.out.println("hon");
		} NLast==7 NLast 7 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(NLast==9) {
			System.out.println("hon");
		} NLast==9 NLast 9 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(NLast==0) {
			System.out.println("pon");
		} NLast==0 NLast 0 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" if(NLast==1) {
			System.out.println("pon");
		} NLast==1 NLast 1 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" if(NLast==6) {
			System.out.println("pon");
		} NLast==6 NLast 6 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" if(NLast==8) {
			System.out.println("pon");
		} NLast==8 NLast 8 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" if(NLast==3) {
			System.out.println("bon");
		} NLast==3 NLast 3 {
			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) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String N = scan.next(); 
		char[] X = N.toCharArray();
		//System.out.println(X);
		char NLast1= X[X.length-1] ;
		int NLast = Character.getNumericValue(NLast1);
		//System.out.println(NLast);
		//System.out.println(NLast==2);
		if(NLast==2) {
			System.out.println("hon");
		}
		
		if(NLast==4) {
			System.out.println("hon");
		}
		if(NLast==5) {
			System.out.println("hon");
		}
		if(NLast==7) {
			System.out.println("hon");
		}
		if(NLast==9) {
			System.out.println("hon");
		}
		if(NLast==0) {
			System.out.println("pon");
		}
		if(NLast==1) {
			System.out.println("pon");
		}
		if(NLast==6) {
			System.out.println("pon");
		}
		if(NLast==8) {
			System.out.println("pon");
		}
		if(NLast==3) {
			System.out.println("bon");
		}

	}

}
