Bobo has a very very long binary sequence s of length n. All except m positions x_1,x_2,…,x_m are 0 (And s_x_1=s_x_2=⋯=s_x_m=1).
Now bobo would like to know the number of distinct consecutive substrings of s.
The first line contains 2 integers n,m (1≤n≤109,1≤m≤minn,1000).
The second line contains m integers x_1,x_2,…,x_m (1≤x_1<x_2<⋯<x_m≤n).
A single integer denotes the number of distinct substrings.