import java.util.Scanner; import java.util.Arrays; public class pre { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a,b,c,d; String s; int[] num = new int[10]; Arrays.fill(num,9); for(int i=0;i