import java.util.LinkedList; import java.util.Scanner; public class A000005 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int l = s.nextInt(); int n = s.nextInt(); LinkedList li = new LinkedList<>(); for(int i=0;i