import java.util.*;

public class Max {
	public static void main(String [] args) {
		Scanner scanner = new Scanner(System.in);

		System.out.print("Enter first number: ");
		int x = scanner.nextInt();
		System.out.print("Enter second number: ");
		int y = scanner.nextInt();
		System.out.print("Enter third number: ");
		int z = scanner.nextInt();

		int max;

		if (x > y) 
			if (x > z)
				max = x;
			else
				max = z;
		else 
			if (y > z)
				max = y;
			else
				max = z;

		System.out.println("The max of " + x + " " + y + ", and " + z + " is: " + max);
	}
}
