{ constraints } const MAXN = 50000; { input data } var N, V, i : longint; prices, vouchers : array[0..MAXN-1] of longint; begin { uncomment the following lines if you want to read/write from files assign(input, 'input.txt'); reset(input); assign(output, 'output.txt'); rewrite(output); } readln(N, V); for i:=0 to N-1 do read(prices[i]); readln(); for i:=0 to V-1 do read(vouchers[i]); readln(); { insert your code here } writeln(42); { print result } end.