import java.util.*; import java.io.*; public class Main{ static final Reader sc = new Reader(); static final PrintWriter out = new PrintWriter(System.out,false); static long ex = 1000003; public static void main(String[] args) throws Exception { long x = sc.nextInt(); int n = sc.nextInt(); long ans = 0; for(int i=0;i