import java.util.Scanner;

class Lab2 {
	public static void main(String[] args) {

		Scanner kb = new Scanner(System.in);

		System.out.print("Enter in 3 integers: " );

		int length1 = kb.nextInt();
		int length2 = kb.nextInt();
		int length3 = kb.nextInt();

		if (length1 <= 0 || length2 <= 0 || length3 <= 0) {
			System.out.println("Error: cannot have length less than or equal to 0");
			return;
		} 

		int area = length1 * length2 * length3;

		System.out.printf("Package area: %d\n", area);

		String boxType = "";
		double cost = 0.0;

		if(area >= 0 && area <= 100) {
			boxType = "Small";
			cost = 3.5;
		}
		else if (area >= 101 && area <= 1000) {
			boxType = "Medium";
			cost = 7;
		}
		else if (area >= 1001 && area <= 10000) {
			boxType = "Large";
			cost = 14;
		}
		else {
			System.out.println("No box type is available");
			return;
		}

		System.out.printf("Box type: %s, Cost: %.2f\n", boxType, cost);

	}
}
