import java.math.*; import java.util.*; public class Main { static int[] i1; static int[] i2; static int[] ten; static int ans=0; static int r; static int g; static int isUsed=0; static int[] a; static void check(int now){ if(now==r){ eee(); return; } for(int i=0;i uuu= new ArrayList<>(); i1 = new int[g]; i2=new int[g]; ten = new int[g]; for(int i=0;i