void solve() throws IOException { char[] s = "qwertyuiopasdfghjklzxcvbnm".toCharArray(); int n = rI(); int m = rI(); int r1 = 0; int r2 = 0; while(r1