import java.util.*; import java.io.*; public class Main { void solve (FastScanner in, PrintWriter out) { int n = in.nextInt(), m = in.nextInt(); String[] turn = in.nextArray(m); // turn.forEach(e->System.out.println(e)); int next = 0; //次は誰の番か int[] num = new int[n]; //i番目の参加者は何枚カードを持っているか int[] draw = new int[n]; boolean reverse = false; int draw2Num = 0; //draw2の蓄積 int draw4Num = 0; for (int i=0; i