
public class MinMax {

	public static void main(String[] args) {

		int min = Integer.MAX_VALUE;
		int max = Integer.MIN_VALUE;

		while (!StdIn.isEmpty()) {

			int x = StdIn.readInt();

			if (x > max) {
				max = x;
			}

			if (x < min) {
				min = x;
			}
		}

		System.out.println("min: "+min + ", max: " + max);
	}
}

