import java.util.Scanner; public class FindMaxMin { public static void main(String[] args) { Scanner input = new Scanner(System.in); double x, y, max, min; x = input.nextDouble(); y = input.nextDouble(); max = (x > y) ? x : y; min = (x < y) ? x : y; } }