import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); StringBuilder sb = new StringBuilder(); for (int i=1; i<=n; i++) { if (i < 10) {sb.append("0");} sb.append(i); } int m = sc.nextInt(); for (int i=0; i