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));

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    }
} 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));

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    }
} Main public static void main(String args[]) throws IOException {

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

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    } main {

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

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	} N % 10 N 10 case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; default: default: System.out.println("hon") System.out.println System.out System System.out "hon" String args[] args public class Main {
    public static void main(String args[]) throws IOException {

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

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    }
} public class Main {
    public static void main(String args[]) throws IOException {

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

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    }
} 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));

	int N = Integer.parseInt(br.readLine());

	switch (N % 10) {
	case 0:
	case 1:
	case 6:
	case 8:
	    System.out.println("pon");
	    break;
	case 3:
	    System.out.println("bon");
	    break;
	default:
	    System.out.println("hon");
	}
    }
}
