public class ProblemA454 { public static void main(String agrs[]){ Scanner sc = new Scanner(System.in); //puts all input into ints int papaBear = sc.nextInt(); int mamaBear = sc.nextInt(); int sonBear = sc.nextInt(); int masha = sc.nextInt(); boolean mashaFits = false; // array of all possible car sizes of bear int[] a = new int[sonBear+1]; //puts all possible car sizes of bear inside array (size sonBear ... sonBear*2) for(int i = 0; i