A. Atomic Energy
time limit per test
5 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
4 5
2 3 5 7
2
3
5
6
8
Output
3
5
8
10
13
Input
1 3
10
1
2
100
Output
10
20
1000