import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); long ans = 0; int x = scan.nextInt(); int N = scan.nextInt(); for(int i=0; i