The first line contains two integers and (, ).The second line contains numbers .
Output one integer, the answer.
10 6 2 3 2 1 6 2 3 2 1 7
8