package yukicoder; import java.util.Scanner; public class Yuki26 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // cup int[] a = new int[3]; a[sc.nextInt()-1] = 1; //入れ替える回数 int m = sc.nextInt(); for (int i=0; i