package atcoder.arc155

private fun solve(): Boolean {
	val (_, qIn) = readLongs()
	val s = readLn()
	val q = minOf(qIn % (2 * s.length) + 4 * s.length, qIn).toInt()
	val c = (s + " ".repeat(q)).toCharArray()
	val mark = BooleanArray(c.size) { false }
	var answer = true
	val queue = IntArray(c.size)
	for (i in c.indices) {
		if (mark[i]) continue
		if (c[i] == ' ') c[i] = 'a'
		var low = 0
		var high = 1
		queue[0] = i
		mark[i] = true
		while (low < high) {
			val v = queue[low++]
			val u = c.size - 1 - v
			if (c[u] == ' ') c[u] = c[v]
			if (c[u] != c[v]) answer = false
			if (!mark[u]) {
				queue[high++] = u
				mark[u] = true
			}
			val u1 = (v + c.size - s.length) % c.size
			val u2 = c.size - 1 - u1
			val uu = (u2 + s.length) % c.size
			if (c[uu] == ' ') c[uu] = c[v]
			if (c[uu] != c[v]) answer = false
			if (!mark[uu]) {
				queue[high++] = uu
				mark[uu] = true
			}
		}
	}
	return answer
}

fun main() = repeat(readInt()) { println(solve().iif("Yes", "No")) }

private fun readLn() = readLine()!!
private fun readInt() = readLn().toInt()
private fun readStrings() = readLn().split(" ")
private fun readLongs() = readStrings().map { it.toLong() }
private fun <T> Boolean.iif(onTrue: T, onFalse: T) = if (this) onTrue else onFalse

Compiled from "a.kt"
public final class atcoder.arc155.AKt {
  private static final boolean solve();
    Code:
       0: invokestatic  #10                 // Method readLongs:()Ljava/util/List;
       3: iconst_1
       4: invokeinterface #16,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
       9: checkcast     #18                 // class java/lang/Number
      12: invokevirtual #22                 // Method java/lang/Number.longValue:()J
      15: lstore_0
      16: invokestatic  #26                 // Method readLn:()Ljava/lang/String;
      19: astore_2
      20: lload_0
      21: iconst_2
      22: aload_2
      23: invokevirtual #32                 // Method java/lang/String.length:()I
      26: imul
      27: i2l
      28: lrem
      29: iconst_4
      30: aload_2
      31: invokevirtual #32                 // Method java/lang/String.length:()I
      34: imul
      35: i2l
      36: ladd
      37: lload_0
      38: invokestatic  #38                 // Method java/lang/Math.min:(JJ)J
      41: l2i
      42: istore_3
      43: new           #40                 // class java/lang/StringBuilder
      46: dup
      47: invokespecial #44                 // Method java/lang/StringBuilder."<init>":()V
      50: aload_2
      51: invokevirtual #48                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      54: ldc           #50                 // String
      56: checkcast     #52                 // class java/lang/CharSequence
      59: iload_3
      60: invokestatic  #58                 // Method kotlin/text/StringsKt.repeat:(Ljava/lang/CharSequence;I)Ljava/lang/String;
      63: invokevirtual #48                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      66: invokevirtual #61                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
      69: invokevirtual #65                 // Method java/lang/String.toCharArray:()[C
      72: dup
      73: ldc           #67                 // String toCharArray(...)
      75: invokestatic  #73                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullExpressionValue:(Ljava/lang/Object;Ljava/lang/String;)V
      78: astore        4
      80: iconst_0
      81: istore        6
      83: aload         4
      85: arraylength
      86: istore        7
      88: iload         7
      90: newarray       boolean
      92: astore        8
      94: iload         6
      96: iload         7
      98: if_icmpge     117
     101: iload         6
     103: istore        9
     105: aload         8
     107: iload         9
     109: iconst_0
     110: bastore
     111: iinc          6, 1
     114: goto          94
     117: aload         8
     119: astore        5
     121: iconst_1
     122: istore        6
     124: aload         4
     126: arraylength
     127: newarray       int
     129: astore        7
     131: iconst_0
     132: istore        8
     134: aload         4
     136: arraylength
     137: istore        9
     139: iload         8
     141: iload         9
     143: if_icmpge     385
     146: aload         5
     148: iload         8
     150: baload
     151: ifne          379
     154: aload         4
     156: iload         8
     158: caload
     159: bipush        32
     161: if_icmpne     171
     164: aload         4
     166: iload         8
     168: bipush        97
     170: castore
     171: iconst_0
     172: istore        10
     174: iconst_1
     175: istore        11
     177: aload         7
     179: iconst_0
     180: iload         8
     182: iastore
     183: aload         5
     185: iload         8
     187: iconst_1
     188: bastore
     189: iload         10
     191: iload         11
     193: if_icmpge     379
     196: aload         7
     198: iload         10
     200: iinc          10, 1
     203: iaload
     204: istore        12
     206: aload         4
     208: arraylength
     209: iconst_1
     210: isub
     211: iload         12
     213: isub
     214: istore        13
     216: aload         4
     218: iload         13
     220: caload
     221: bipush        32
     223: if_icmpne     236
     226: aload         4
     228: iload         13
     230: aload         4
     232: iload         12
     234: caload
     235: castore
     236: aload         4
     238: iload         13
     240: caload
     241: aload         4
     243: iload         12
     245: caload
     246: if_icmpeq     252
     249: iconst_0
     250: istore        6
     252: aload         5
     254: iload         13
     256: baload
     257: ifne          276
     260: aload         7
     262: iload         11
     264: iinc          11, 1
     267: iload         13
     269: iastore
     270: aload         5
     272: iload         13
     274: iconst_1
     275: bastore
     276: iload         12
     278: aload         4
     280: arraylength
     281: iadd
     282: aload_2
     283: invokevirtual #32                 // Method java/lang/String.length:()I
     286: isub
     287: aload         4
     289: arraylength
     290: irem
     291: istore        14
     293: aload         4
     295: arraylength
     296: iconst_1
     297: isub
     298: iload         14
     300: isub
     301: istore        15
     303: iload         15
     305: aload_2
     306: invokevirtual #32                 // Method java/lang/String.length:()I
     309: iadd
     310: aload         4
     312: arraylength
     313: irem
     314: istore        16
     316: aload         4
     318: iload         16
     320: caload
     321: bipush        32
     323: if_icmpne     336
     326: aload         4
     328: iload         16
     330: aload         4
     332: iload         12
     334: caload
     335: castore
     336: aload         4
     338: iload         16
     340: caload
     341: aload         4
     343: iload         12
     345: caload
     346: if_icmpeq     352
     349: iconst_0
     350: istore        6
     352: aload         5
     354: iload         16
     356: baload
     357: ifne          189
     360: aload         7
     362: iload         11
     364: iinc          11, 1
     367: iload         16
     369: iastore
     370: aload         5
     372: iload         16
     374: iconst_1
     375: bastore
     376: goto          189
     379: iinc          8, 1
     382: goto          139
     385: iload         6
     387: ireturn

  public static final void main();
    Code:
       0: invokestatic  #102                // Method readInt:()I
       3: istore_0
       4: iconst_0
       5: istore_1
       6: iload_1
       7: iload_0
       8: if_icmpge     39
      11: iload_1
      12: istore_2
      13: iconst_0
      14: istore_3
      15: invokestatic  #104                // Method solve:()Z
      18: ldc           #106                // String Yes
      20: ldc           #108                // String No
      22: invokestatic  #112                // Method iif:(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      25: getstatic     #118                // Field java/lang/System.out:Ljava/io/PrintStream;
      28: swap
      29: invokevirtual #124                // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
      32: nop
      33: iinc          1, 1
      36: goto          6
      39: return

  private static final java.lang.String readLn();
    Code:
       0: invokestatic  #131                // Method kotlin/io/ConsoleKt.readLine:()Ljava/lang/String;
       3: dup
       4: invokestatic  #134                // Method kotlin/jvm/internal/Intrinsics.checkNotNull:(Ljava/lang/Object;)V
       7: areturn

  private static final int readInt();
    Code:
       0: invokestatic  #26                 // Method readLn:()Ljava/lang/String;
       3: invokestatic  #140                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
       6: ireturn

  private static final java.util.List<java.lang.String> readStrings();
    Code:
       0: invokestatic  #26                 // Method readLn:()Ljava/lang/String;
       3: checkcast     #52                 // class java/lang/CharSequence
       6: iconst_1
       7: anewarray     #28                 // class java/lang/String
      10: astore_0
      11: aload_0
      12: iconst_0
      13: ldc           #50                 // String
      15: aastore
      16: aload_0
      17: iconst_0
      18: iconst_0
      19: bipush        6
      21: aconst_null
      22: invokestatic  #146                // Method kotlin/text/StringsKt.split$default:(Ljava/lang/CharSequence;[Ljava/lang/String;ZIILjava/lang/Object;)Ljava/util/List;
      25: areturn

  private static final java.util.List<java.lang.Long> readLongs();
    Code:
       0: invokestatic  #149                // Method readStrings:()Ljava/util/List;
       3: checkcast     #151                // class java/lang/Iterable
       6: astore_0
       7: iconst_0
       8: istore_1
       9: aload_0
      10: astore_2
      11: new           #153                // class java/util/ArrayList
      14: dup
      15: aload_0
      16: bipush        10
      18: invokestatic  #159                // Method kotlin/collections/CollectionsKt.collectionSizeOrDefault:(Ljava/lang/Iterable;I)I
      21: invokespecial #162                // Method java/util/ArrayList."<init>":(I)V
      24: checkcast     #164                // class java/util/Collection
      27: astore_3
      28: iconst_0
      29: istore        4
      31: aload_2
      32: invokeinterface #168,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      37: astore        5
      39: aload         5
      41: invokeinterface #173,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
      46: ifeq          92
      49: aload         5
      51: invokeinterface #177,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      56: astore        6
      58: aload_3
      59: aload         6
      61: checkcast     #28                 // class java/lang/String
      64: astore        7
      66: astore        9
      68: iconst_0
      69: istore        8
      71: aload         7
      73: invokestatic  #183                // Method java/lang/Long.parseLong:(Ljava/lang/String;)J
      76: nop
      77: invokestatic  #187                // Method java/lang/Long.valueOf:(J)Ljava/lang/Long;
      80: aload         9
      82: swap
      83: invokeinterface #191,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      88: pop
      89: goto          39
      92: aload_3
      93: checkcast     #12                 // class java/util/List
      96: nop
      97: areturn

  private static final <T> T iif(boolean, T, T);
    Code:
       0: iload_0
       1: ifeq          8
       4: aload_1
       5: goto          9
       8: aload_2
       9: areturn

  public static void main(java.lang.String[]);
    Code:
       0: invokestatic  #208                // Method main:()V
       3: return
}


package atcoder.arc154

private fun solve(): Boolean {
	val (_, a, b) = List(3) { readInts() }
	if (a == b) return true
	if (b.toSet().size == 1) return b[0] in a
	val want = b.filterIndexed { i, it -> it != b.getCycled(i + 1) }
	if (want.size == b.size) return false
	for (aShifted in a.allShifts()) {
		var k = 0
		for (x in aShifted) if (want[k] == x) if (++k == want.size) return true
	}
	return false
}

fun main() = repeat(readInt()) { println(solve().iif("Yes", "No")) }

private fun <T> List<T>.getCycled(index: Int) = getOrElse(index) { get(if (index >= 0) index % size else lastIndex - index.inv() % size) }
private fun <T> List<T>.shifted(shift: Int) = drop(shift) + take(shift)
private fun <T> List<T>.allShifts() = List(size) { shifted(it) }
private fun <T> Boolean.iif(onTrue: T, onFalse: T) = if (this) onTrue else onFalse

private fun readLn() = readLine()!!
private fun readInt() = readLn().toInt()
private fun readStrings() = readLn().split(" ")
private fun readInts() = readStrings().map { it.toInt() }

Compiled from "c.kt"
public final class atcoder.arc154.CKt {
  private static final boolean solve();
    Code:
       0: iconst_3
       1: istore_1
       2: new           #8                  // class java/util/ArrayList
       5: dup
       6: iload_1
       7: invokespecial #12                 // Method java/util/ArrayList."<init>":(I)V
      10: astore_2
      11: iconst_0
      12: istore_3
      13: iload_3
      14: iload_1
      15: if_icmpge     47
      18: iload_3
      19: istore        4
      21: aload_2
      22: iload         4
      24: istore        5
      26: astore        21
      28: iconst_0
      29: istore        6
      31: invokestatic  #16                 // Method readInts:()Ljava/util/List;
      34: aload         21
      36: swap
      37: invokevirtual #20                 // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
      40: pop
      41: iinc          3, 1
      44: goto          13
      47: aload_2
      48: checkcast     #22                 // class java/util/List
      51: astore_0
      52: aload_0
      53: iconst_1
      54: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      59: checkcast     #22                 // class java/util/List
      62: astore_1
      63: aload_0
      64: iconst_2
      65: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      70: checkcast     #22                 // class java/util/List
      73: astore_2
      74: aload_1
      75: aload_2
      76: invokestatic  #32                 // Method kotlin/jvm/internal/Intrinsics.areEqual:(Ljava/lang/Object;Ljava/lang/Object;)Z
      79: ifeq          84
      82: iconst_1
      83: ireturn
      84: aload_2
      85: checkcast     #34                 // class java/lang/Iterable
      88: invokestatic  #40                 // Method kotlin/collections/CollectionsKt.toSet:(Ljava/lang/Iterable;)Ljava/util/Set;
      91: invokeinterface #46,  1           // InterfaceMethod java/util/Set.size:()I
      96: iconst_1
      97: if_icmpne     114
     100: aload_1
     101: aload_2
     102: iconst_0
     103: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     108: invokeinterface #49,  2           // InterfaceMethod java/util/List.contains:(Ljava/lang/Object;)Z
     113: ireturn
     114: aload_2
     115: checkcast     #34                 // class java/lang/Iterable
     118: astore        4
     120: iconst_0
     121: istore        5
     123: aload         4
     125: astore        6
     127: new           #8                  // class java/util/ArrayList
     130: dup
     131: invokespecial #52                 // Method java/util/ArrayList."<init>":()V
     134: checkcast     #54                 // class java/util/Collection
     137: astore        7
     139: iconst_0
     140: istore        8
     142: aload         6
     144: astore        9
     146: iconst_0
     147: istore        10
     149: iconst_0
     150: istore        11
     152: aload         9
     154: invokeinterface #58,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     159: astore        12
     161: aload         12
     163: invokeinterface #63,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     168: ifeq          265
     171: aload         12
     173: invokeinterface #67,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     178: astore        13
     180: iload         11
     182: iinc          11, 1
     185: istore        14
     187: iload         14
     189: ifge          195
     192: invokestatic  #70                 // Method kotlin/collections/CollectionsKt.throwIndexOverflow:()V
     195: iload         14
     197: aload         13
     199: astore        15
     201: istore        16
     203: iconst_0
     204: istore        17
     206: iload         16
     208: aload         15
     210: checkcast     #72                 // class java/lang/Number
     213: invokevirtual #75                 // Method java/lang/Number.intValue:()I
     216: istore        18
     218: istore        19
     220: iconst_0
     221: istore        20
     223: iload         18
     225: aload_2
     226: iload         19
     228: iconst_1
     229: iadd
     230: invokestatic  #79                 // Method getCycled:(Ljava/util/List;I)Ljava/lang/Object;
     233: checkcast     #72                 // class java/lang/Number
     236: invokevirtual #75                 // Method java/lang/Number.intValue:()I
     239: if_icmpeq     246
     242: iconst_1
     243: goto          247
     246: iconst_0
     247: ifeq          260
     250: aload         7
     252: aload         15
     254: invokeinterface #80,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     259: pop
     260: nop
     261: nop
     262: goto          161
     265: nop
     266: aload         7
     268: checkcast     #22                 // class java/util/List
     271: nop
     272: astore_3
     273: aload_3
     274: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
     279: aload_2
     280: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
     285: if_icmpne     290
     288: iconst_0
     289: ireturn
     290: aload_1
     291: invokestatic  #85                 // Method allShifts:(Ljava/util/List;)Ljava/util/List;
     294: invokeinterface #86,  1           // InterfaceMethod java/util/List.iterator:()Ljava/util/Iterator;
     299: astore        4
     301: aload         4
     303: invokeinterface #63,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     308: ifeq          395
     311: aload         4
     313: invokeinterface #67,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     318: checkcast     #22                 // class java/util/List
     321: astore        5
     323: iconst_0
     324: istore        6
     326: aload         5
     328: invokeinterface #86,  1           // InterfaceMethod java/util/List.iterator:()Ljava/util/Iterator;
     333: astore        7
     335: aload         7
     337: invokeinterface #63,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     342: ifeq          301
     345: aload         7
     347: invokeinterface #67,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     352: checkcast     #72                 // class java/lang/Number
     355: invokevirtual #75                 // Method java/lang/Number.intValue:()I
     358: istore        8
     360: aload_3
     361: iload         6
     363: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     368: checkcast     #72                 // class java/lang/Number
     371: invokevirtual #75                 // Method java/lang/Number.intValue:()I
     374: iload         8
     376: if_icmpne     335
     379: iinc          6, 1
     382: iload         6
     384: aload_3
     385: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
     390: if_icmpne     335
     393: iconst_1
     394: ireturn
     395: iconst_0
     396: ireturn

  public static final void main();
    Code:
       0: invokestatic  #117                // Method readInt:()I
       3: istore_0
       4: iconst_0
       5: istore_1
       6: iload_1
       7: iload_0
       8: if_icmpge     39
      11: iload_1
      12: istore_2
      13: iconst_0
      14: istore_3
      15: invokestatic  #119                // Method solve:()Z
      18: ldc           #121                // String Yes
      20: ldc           #123                // String No
      22: invokestatic  #127                // Method iif:(ZLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
      25: getstatic     #133                // Field java/lang/System.out:Ljava/io/PrintStream;
      28: swap
      29: invokevirtual #139                // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
      32: nop
      33: iinc          1, 1
      36: goto          6
      39: return

  private static final <T> T getCycled(java.util.List<? extends T>, int);
    Code:
       0: aload_0
       1: astore_2
       2: iconst_0
       3: iload_1
       4: if_icmpgt     25
       7: iload_1
       8: aload_2
       9: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
      14: if_icmpge     21
      17: iconst_1
      18: goto          26
      21: iconst_0
      22: goto          26
      25: iconst_0
      26: ifeq          39
      29: aload_2
      30: iload_1
      31: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      36: goto          81
      39: iload_1
      40: istore_3
      41: iconst_0
      42: istore        4
      44: aload_0
      45: iload_1
      46: iflt          60
      49: iload_1
      50: aload_0
      51: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
      56: irem
      57: goto          75
      60: aload_0
      61: invokestatic  #145                // Method kotlin/collections/CollectionsKt.getLastIndex:(Ljava/util/List;)I
      64: iload_1
      65: iconst_m1
      66: ixor
      67: aload_0
      68: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
      73: irem
      74: isub
      75: invokeinterface #26,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      80: nop
      81: areturn

  private static final <T> java.util.List<T> shifted(java.util.List<? extends T>, int);
    Code:
       0: aload_0
       1: checkcast     #34                 // class java/lang/Iterable
       4: iload_1
       5: invokestatic  #155                // Method kotlin/collections/CollectionsKt.drop:(Ljava/lang/Iterable;I)Ljava/util/List;
       8: checkcast     #54                 // class java/util/Collection
      11: aload_0
      12: checkcast     #34                 // class java/lang/Iterable
      15: iload_1
      16: invokestatic  #158                // Method kotlin/collections/CollectionsKt.take:(Ljava/lang/Iterable;I)Ljava/util/List;
      19: checkcast     #34                 // class java/lang/Iterable
      22: invokestatic  #162                // Method kotlin/collections/CollectionsKt.plus:(Ljava/util/Collection;Ljava/lang/Iterable;)Ljava/util/List;
      25: areturn

  private static final <T> java.util.List<java.util.List<T>> allShifts(java.util.List<? extends T>);
    Code:
       0: aload_0
       1: invokeinterface #81,  1           // InterfaceMethod java/util/List.size:()I
       6: istore_1
       7: new           #8                  // class java/util/ArrayList
      10: dup
      11: iload_1
      12: invokespecial #12                 // Method java/util/ArrayList."<init>":(I)V
      15: astore_2
      16: iconst_0
      17: istore_3
      18: iload_3
      19: iload_1
      20: if_icmpge     55
      23: iload_3
      24: istore        4
      26: aload_2
      27: iload         4
      29: istore        5
      31: astore        7
      33: iconst_0
      34: istore        6
      36: aload_0
      37: iload         5
      39: invokestatic  #167                // Method shifted:(Ljava/util/List;I)Ljava/util/List;
      42: aload         7
      44: swap
      45: invokevirtual #20                 // Method java/util/ArrayList.add:(Ljava/lang/Object;)Z
      48: pop
      49: iinc          3, 1
      52: goto          18
      55: aload_2
      56: checkcast     #22                 // class java/util/List
      59: areturn

  private static final <T> T iif(boolean, T, T);
    Code:
       0: iload_0
       1: ifeq          8
       4: aload_1
       5: goto          9
       8: aload_2
       9: areturn

  private static final java.lang.String readLn();
    Code:
       0: invokestatic  #181                // Method kotlin/io/ConsoleKt.readLine:()Ljava/lang/String;
       3: dup
       4: invokestatic  #184                // Method kotlin/jvm/internal/Intrinsics.checkNotNull:(Ljava/lang/Object;)V
       7: areturn

  private static final int readInt();
    Code:
       0: invokestatic  #186                // Method readLn:()Ljava/lang/String;
       3: invokestatic  #192                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
       6: ireturn

  private static final java.util.List<java.lang.String> readStrings();
    Code:
       0: invokestatic  #186                // Method readLn:()Ljava/lang/String;
       3: checkcast     #196                // class java/lang/CharSequence
       6: iconst_1
       7: anewarray     #198                // class java/lang/String
      10: astore_0
      11: aload_0
      12: iconst_0
      13: ldc           #200                // String
      15: aastore
      16: aload_0
      17: iconst_0
      18: iconst_0
      19: bipush        6
      21: aconst_null
      22: invokestatic  #206                // Method kotlin/text/StringsKt.split$default:(Ljava/lang/CharSequence;[Ljava/lang/String;ZIILjava/lang/Object;)Ljava/util/List;
      25: areturn

  private static final java.util.List<java.lang.Integer> readInts();
    Code:
       0: invokestatic  #209                // Method readStrings:()Ljava/util/List;
       3: checkcast     #34                 // class java/lang/Iterable
       6: astore_0
       7: iconst_0
       8: istore_1
       9: aload_0
      10: astore_2
      11: new           #8                  // class java/util/ArrayList
      14: dup
      15: aload_0
      16: bipush        10
      18: invokestatic  #213                // Method kotlin/collections/CollectionsKt.collectionSizeOrDefault:(Ljava/lang/Iterable;I)I
      21: invokespecial #12                 // Method java/util/ArrayList."<init>":(I)V
      24: checkcast     #54                 // class java/util/Collection
      27: astore_3
      28: iconst_0
      29: istore        4
      31: aload_2
      32: invokeinterface #58,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      37: astore        5
      39: aload         5
      41: invokeinterface #63,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      46: ifeq          92
      49: aload         5
      51: invokeinterface #67,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      56: astore        6
      58: aload_3
      59: aload         6
      61: checkcast     #198                // class java/lang/String
      64: astore        7
      66: astore        9
      68: iconst_0
      69: istore        8
      71: aload         7
      73: invokestatic  #192                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
      76: nop
      77: invokestatic  #217                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      80: aload         9
      82: swap
      83: invokeinterface #80,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      88: pop
      89: goto          39
      92: aload_3
      93: checkcast     #22                 // class java/util/List
      96: nop
      97: areturn

  public static void main(java.lang.String[]);
    Code:
       0: invokestatic  #227                // Method main:()V
       3: return
}


package atcoder.arc154

import kotlin.random.Random

fun main() {
	val n = readInt()
	val random = Random(566)
	val shuffle = (0 until n).shuffled(random)
	val memo = mutableMapOf<Triple<Int, Int, Int>, Boolean>()
	// p[i] + p[j] > p[k]
	fun ask(i: Int, j: Int, k: Int): Boolean {
		if (i > j) return ask(j, i, k)
		return memo.getOrPut(Triple(i, j, k)) {
			println("? ${shuffle[i] + 1} ${shuffle[j] + 1} ${shuffle[k] + 1}")
			readLn()[0] == 'Y'
		}
	}

	var one = 0
	// 2p[i] <= p[one]
	for (i in 1 until n) if (!ask(i, i, one)) one = i

	val a = IntArray(n) { it }
	a[0] = one; a[one] = 0
	val mergeSortTemp = IntArray(n)
	fun sort(from: Int, to: Int) {
		val partSize = to - from
		if (partSize <= 1) return
		val mid = (from + to) / 2
		sort(from, mid); sort(mid, to)
		var i = from; var j = mid
		for (k in 0 until partSize) mergeSortTemp[k] = a[
			if (i < mid && (j == to || !ask(a[i], one, a[j]))) i++ else j++
		]
		System.arraycopy(mergeSortTemp, 0, a, from, partSize)
	}
	sort(1, n)

	val ans = IntArray(n)
	for (i in a.indices) {
		ans[shuffle[a[i]]] = i + 1
	}
	println("! ${ans.joinToString(" ")}")
}

private fun readLn() = readLine()!!
private fun readInt() = readLn().toInt()

Compiled from "d.kt"
public final class atcoder.arc154.DKt {
  public static final void main();
    Code:
       0: invokestatic  #10                 // Method readInt:()I
       3: istore_0
       4: sipush        566
       7: invokestatic  #16                 // Method kotlin/random/RandomKt.Random:(I)Lkotlin/random/Random;
      10: astore_1
      11: iconst_0
      12: iload_0
      13: invokestatic  #22                 // Method kotlin/ranges/RangesKt.until:(II)Lkotlin/ranges/IntRange;
      16: checkcast     #24                 // class java/lang/Iterable
      19: aload_1
      20: invokestatic  #30                 // Method kotlin/collections/CollectionsKt.shuffled:(Ljava/lang/Iterable;Lkotlin/random/Random;)Ljava/util/List;
      23: astore_2
      24: new           #32                 // class java/util/LinkedHashMap
      27: dup
      28: invokespecial #35                 // Method java/util/LinkedHashMap."<init>":()V
      31: checkcast     #37                 // class java/util/Map
      34: astore_3
      35: new           #39                 // class kotlin/jvm/internal/Ref$IntRef
      38: dup
      39: invokespecial #40                 // Method kotlin/jvm/internal/Ref$IntRef."<init>":()V
      42: astore        4
      44: iconst_1
      45: istore        5
      47: iload         5
      49: iload_0
      50: if_icmpge     83
      53: aload_3
      54: aload_2
      55: iload         5
      57: iload         5
      59: aload         4
      61: getfield      #44                 // Field kotlin/jvm/internal/Ref$IntRef.element:I
      64: invokestatic  #48                 // Method main$ask:(Ljava/util/Map;Ljava/util/List;III)Z
      67: ifne          77
      70: aload         4
      72: iload         5
      74: putfield      #44                 // Field kotlin/jvm/internal/Ref$IntRef.element:I
      77: iinc          5, 1
      80: goto          47
      83: iconst_0
      84: istore        6
      86: iload_0
      87: newarray       int
      89: astore        7
      91: iload         6
      93: iload_0
      94: if_icmpge     114
      97: iload         6
      99: istore        8
     101: aload         7
     103: iload         8
     105: iload         8
     107: iastore
     108: iinc          6, 1
     111: goto          91
     114: aload         7
     116: astore        5
     118: aload         5
     120: iconst_0
     121: aload         4
     123: getfield      #44                 // Field kotlin/jvm/internal/Ref$IntRef.element:I
     126: iastore
     127: aload         5
     129: aload         4
     131: getfield      #44                 // Field kotlin/jvm/internal/Ref$IntRef.element:I
     134: iconst_0
     135: iastore
     136: iload_0
     137: newarray       int
     139: astore        6
     141: aload         6
     143: aload         5
     145: aload         4
     147: aload_3
     148: aload_2
     149: iconst_1
     150: iload_0
     151: invokestatic  #52                 // Method main$sort:([I[ILkotlin/jvm/internal/Ref$IntRef;Ljava/util/Map;Ljava/util/List;II)V
     154: iload_0
     155: newarray       int
     157: astore        7
     159: iconst_0
     160: istore        8
     162: aload         5
     164: arraylength
     165: istore        9
     167: iload         8
     169: iload         9
     171: if_icmpge     204
     174: aload         7
     176: aload_2
     177: aload         5
     179: iload         8
     181: iaload
     182: invokeinterface #58,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     187: checkcast     #60                 // class java/lang/Number
     190: invokevirtual #63                 // Method java/lang/Number.intValue:()I
     193: iload         8
     195: iconst_1
     196: iadd
     197: iastore
     198: iinc          8, 1
     201: goto          167
     204: new           #65                 // class java/lang/StringBuilder
     207: dup
     208: invokespecial #66                 // Method java/lang/StringBuilder."<init>":()V
     211: ldc           #68                 // String !
     213: invokevirtual #72                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
     216: aload         7
     218: ldc           #74                 // String
     220: checkcast     #76                 // class java/lang/CharSequence
     223: aconst_null
     224: aconst_null
     225: iconst_0
     226: aconst_null
     227: aconst_null
     228: bipush        62
     230: aconst_null
     231: invokestatic  #82                 // Method kotlin/collections/ArraysKt.joinToString$default:([ILjava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
     234: invokevirtual #72                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
     237: invokevirtual #86                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
     240: getstatic     #92                 // Field java/lang/System.out:Ljava/io/PrintStream;
     243: swap
     244: invokevirtual #98                 // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
     247: return

  private static final java.lang.String readLn();
    Code:
       0: invokestatic  #121                // Method kotlin/io/ConsoleKt.readLine:()Ljava/lang/String;
       3: dup
       4: invokestatic  #126                // Method kotlin/jvm/internal/Intrinsics.checkNotNull:(Ljava/lang/Object;)V
       7: areturn

  private static final int readInt();
    Code:
       0: invokestatic  #128                // Method readLn:()Ljava/lang/String;
       3: invokestatic  #134                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
       6: ireturn

  public static void main(java.lang.String[]);
    Code:
       0: invokestatic  #137                // Method main:()V
       3: return

  private static final boolean main$ask(java.util.Map<kotlin.Triple<java.lang.Integer, java.lang.Integer, java.lang.Integer>, java.lang.Boolean>, java.util.List<java.lang.Integer>, int, int, int);
    Code:
       0: iload_2
       1: iload_3
       2: if_icmple     15
       5: aload_0
       6: aload_1
       7: iload_3
       8: iload_2
       9: iload         4
      11: invokestatic  #48                 // Method main$ask:(Ljava/util/Map;Ljava/util/List;III)Z
      14: ireturn
      15: aload_0
      16: astore        5
      18: new           #142                // class kotlin/Triple
      21: dup
      22: iload_2
      23: invokestatic  #146                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      26: iload_3
      27: invokestatic  #146                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      30: iload         4
      32: invokestatic  #146                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      35: invokespecial #149                // Method kotlin/Triple."<init>":(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
      38: astore        6
      40: iconst_0
      41: istore        7
      43: aload         5
      45: aload         6
      47: invokeinterface #152,  2          // InterfaceMethod java/util/Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
      52: astore        8
      54: aload         8
      56: ifnonnull     188
      59: iconst_0
      60: istore        9
      62: new           #65                 // class java/lang/StringBuilder
      65: dup
      66: invokespecial #66                 // Method java/lang/StringBuilder."<init>":()V
      69: ldc           #154                // String ?
      71: invokevirtual #72                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      74: aload_1
      75: iload_2
      76: invokeinterface #58,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
      81: checkcast     #60                 // class java/lang/Number
      84: invokevirtual #63                 // Method java/lang/Number.intValue:()I
      87: iconst_1
      88: iadd
      89: invokevirtual #157                // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      92: bipush        32
      94: invokevirtual #160                // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
      97: aload_1
      98: iload_3
      99: invokeinterface #58,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     104: checkcast     #60                 // class java/lang/Number
     107: invokevirtual #63                 // Method java/lang/Number.intValue:()I
     110: iconst_1
     111: iadd
     112: invokevirtual #157                // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
     115: bipush        32
     117: invokevirtual #160                // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
     120: aload_1
     121: iload         4
     123: invokeinterface #58,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     128: checkcast     #60                 // class java/lang/Number
     131: invokevirtual #63                 // Method java/lang/Number.intValue:()I
     134: iconst_1
     135: iadd
     136: invokevirtual #157                // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
     139: invokevirtual #86                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
     142: getstatic     #92                 // Field java/lang/System.out:Ljava/io/PrintStream;
     145: swap
     146: invokevirtual #98                 // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
     149: invokestatic  #128                // Method readLn:()Ljava/lang/String;
     152: iconst_0
     153: invokevirtual #166                // Method java/lang/String.charAt:(I)C
     156: bipush        89
     158: if_icmpne     165
     161: iconst_1
     162: goto          166
     165: iconst_0
     166: invokestatic  #171                // Method java/lang/Boolean.valueOf:(Z)Ljava/lang/Boolean;
     169: astore        10
     171: aload         5
     173: aload         6
     175: aload         10
     177: invokeinterface #175,  3          // InterfaceMethod java/util/Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
     182: pop
     183: aload         10
     185: goto          190
     188: aload         8
     190: nop
     191: checkcast     #168                // class java/lang/Boolean
     194: invokevirtual #179                // Method java/lang/Boolean.booleanValue:()Z
     197: ireturn

  private static final void main$sort(int[], int[], kotlin.jvm.internal.Ref$IntRef, java.util.Map<kotlin.Triple<java.lang.Integer, java.lang.Integer, java.lang.Integer>, java.lang.Boolean>, java.util.List<java.lang.Integer>, int, int);
    Code:
       0: iload         6
       2: iload         5
       4: isub
       5: istore        7
       7: iload         7
       9: iconst_1
      10: if_icmpgt     14
      13: return
      14: iload         5
      16: iload         6
      18: iadd
      19: iconst_2
      20: idiv
      21: istore        8
      23: aload_0
      24: aload_1
      25: aload_2
      26: aload_3
      27: aload         4
      29: iload         5
      31: iload         8
      33: invokestatic  #52                 // Method main$sort:([I[ILkotlin/jvm/internal/Ref$IntRef;Ljava/util/Map;Ljava/util/List;II)V
      36: aload_0
      37: aload_1
      38: aload_2
      39: aload_3
      40: aload         4
      42: iload         8
      44: iload         6
      46: invokestatic  #52                 // Method main$sort:([I[ILkotlin/jvm/internal/Ref$IntRef;Ljava/util/Map;Ljava/util/List;II)V
      49: iload         5
      51: istore        9
      53: iload         8
      55: istore        10
      57: iconst_0
      58: istore        11
      60: iload         11
      62: iload         7
      64: if_icmpge     127
      67: aload_0
      68: iload         11
      70: aload_1
      71: iload         9
      73: iload         8
      75: if_icmpge     114
      78: iload         10
      80: iload         6
      82: if_icmpeq     106
      85: aload_3
      86: aload         4
      88: aload_1
      89: iload         9
      91: iaload
      92: aload_2
      93: getfield      #44                 // Field kotlin/jvm/internal/Ref$IntRef.element:I
      96: aload_1
      97: iload         10
      99: iaload
     100: invokestatic  #48                 // Method main$ask:(Ljava/util/Map;Ljava/util/List;III)Z
     103: ifne          114
     106: iload         9
     108: iinc          9, 1
     111: goto          119
     114: iload         10
     116: iinc          10, 1
     119: iaload
     120: iastore
     121: iinc          11, 1
     124: goto          60
     127: aload_0
     128: iconst_0
     129: aload_1
     130: iload         5
     132: iload         7
     134: invokestatic  #193                // Method java/lang/System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
     137: return
}


package atcoder.arc153

private const val M = 1e12.toLong()

private fun solve(s: IntArray): LongArray? {
	val n = s.size
	val sSum = s.sum()
	val a = LongArray(n) { it + 1L }
	fun aSum() = a.indices.sumOf { i -> a[i] * s[i] }
	if (sSum != 0) {
		val x = M / 4
		val delta = (-x - aSum()) / sSum
		for (i in a.indices) a[i] += delta
		a[n - 1] -= aSum()
		return a
	}
	if (aSum() <= 0) {
		a[n - 1] -= aSum()
		return a
	}
	var sCum = 0
	for (i in a.indices) {
		sCum += s[i]
		if (sCum > 0) {
			val x = aSum() + 1
			for (j in i + 1 until n) a[j] += x
			a[n - 1] -= aSum()
			return a
		}
	}
	return null
}

fun main() {
	readLn()
	val s = readInts().toIntArray()
	val ans = (if (s.last() == 1) solve(s) else solve(s.map { -it }.toIntArray()))
		?: return println("No")
	println("Yes")
	println(ans.joinToString(" "))
}

private fun readLn() = readLine()!!
private fun readStrings() = readLn().split(" ")
private fun readInts() = readStrings().map { it.toInt() }

Compiled from "c.kt"
public final class atcoder.arc153.CKt {
  private static final long M;

  private static final long[] solve(int[]);
    Code:
       0: aload_0
       1: arraylength
       2: istore_1
       3: aload_0
       4: invokestatic  #12                 // Method kotlin/collections/ArraysKt.sum:([I)I
       7: istore_2
       8: iconst_0
       9: istore        4
      11: iload_1
      12: newarray       long
      14: astore        5
      16: iload         4
      18: iload_1
      19: if_icmpge     42
      22: iload         4
      24: istore        6
      26: aload         5
      28: iload         6
      30: iload         6
      32: i2l
      33: lconst_1
      34: ladd
      35: lastore
      36: iinc          4, 1
      39: goto          16
      42: aload         5
      44: astore_3
      45: iload_2
      46: ifeq          124
      49: ldc2_w        #13                 // long 250000000000l
      52: lstore        4
      54: lload         4
      56: lneg
      57: aload_3
      58: aload_0
      59: invokestatic  #18                 // Method solve$aSum:([J[I)J
      62: lsub
      63: iload_2
      64: i2l
      65: ldiv
      66: lstore        6
      68: iconst_0
      69: istore        8
      71: aload_3
      72: arraylength
      73: istore        9
      75: iload         8
      77: iload         9
      79: if_icmpge     103
      82: iload         8
      84: istore        10
      86: aload_3
      87: iload         10
      89: aload_3
      90: iload         10
      92: laload
      93: lload         6
      95: ladd
      96: lastore
      97: iinc          8, 1
     100: goto          75
     103: iload_1
     104: iconst_1
     105: isub
     106: istore        8
     108: aload_3
     109: iload         8
     111: aload_3
     112: iload         8
     114: laload
     115: aload_3
     116: aload_0
     117: invokestatic  #18                 // Method solve$aSum:([J[I)J
     120: lsub
     121: lastore
     122: aload_3
     123: areturn
     124: aload_3
     125: aload_0
     126: invokestatic  #18                 // Method solve$aSum:([J[I)J
     129: lconst_0
     130: lcmp
     131: ifgt          155
     134: iload_1
     135: iconst_1
     136: isub
     137: istore        4
     139: aload_3
     140: iload         4
     142: aload_3
     143: iload         4
     145: laload
     146: aload_3
     147: aload_0
     148: invokestatic  #18                 // Method solve$aSum:([J[I)J
     151: lsub
     152: lastore
     153: aload_3
     154: areturn
     155: iconst_0
     156: istore        4
     158: iconst_0
     159: istore        5
     161: aload_3
     162: arraylength
     163: istore        6
     165: iload         5
     167: iload         6
     169: if_icmpge     255
     172: iload         4
     174: aload_0
     175: iload         5
     177: iaload
     178: iadd
     179: istore        4
     181: iload         4
     183: ifle          249
     186: aload_3
     187: aload_0
     188: invokestatic  #18                 // Method solve$aSum:([J[I)J
     191: lconst_1
     192: ladd
     193: lstore        7
     195: iload         5
     197: iconst_1
     198: iadd
     199: istore        9
     201: iload         9
     203: iload_1
     204: if_icmpge     228
     207: iload         9
     209: istore        10
     211: aload_3
     212: iload         10
     214: aload_3
     215: iload         10
     217: laload
     218: lload         7
     220: ladd
     221: lastore
     222: iinc          9, 1
     225: goto          201
     228: iload_1
     229: iconst_1
     230: isub
     231: istore        9
     233: aload_3
     234: iload         9
     236: aload_3
     237: iload         9
     239: laload
     240: aload_3
     241: aload_0
     242: invokestatic  #18                 // Method solve$aSum:([J[I)J
     245: lsub
     246: lastore
     247: aload_3
     248: areturn
     249: iinc          5, 1
     252: goto          165
     255: aconst_null
     256: areturn

  public static final void main();
    Code:
       0: invokestatic  #39                 // Method readLn:()Ljava/lang/String;
       3: pop
       4: invokestatic  #43                 // Method readInts:()Ljava/util/List;
       7: checkcast     #45                 // class java/util/Collection
      10: invokestatic  #51                 // Method kotlin/collections/CollectionsKt.toIntArray:(Ljava/util/Collection;)[I
      13: astore_0
      14: aload_0
      15: invokestatic  #54                 // Method kotlin/collections/ArraysKt.last:([I)I
      18: iconst_1
      19: if_icmpne     29
      22: aload_0
      23: invokestatic  #56                 // Method solve:([I)[J
      26: goto          122
      29: aload_0
      30: astore_2
      31: iconst_0
      32: istore_3
      33: aload_2
      34: astore        4
      36: new           #58                 // class java/util/ArrayList
      39: dup
      40: aload_2
      41: arraylength
      42: invokespecial #62                 // Method java/util/ArrayList."<init>":(I)V
      45: checkcast     #45                 // class java/util/Collection
      48: astore        5
      50: iconst_0
      51: istore        6
      53: iconst_0
      54: istore        7
      56: aload         4
      58: arraylength
      59: istore        8
      61: iload         7
      63: iload         8
      65: if_icmpge     107
      68: aload         4
      70: iload         7
      72: iaload
      73: istore        9
      75: aload         5
      77: iload         9
      79: istore        10
      81: astore        12
      83: iconst_0
      84: istore        11
      86: iload         10
      88: ineg
      89: invokestatic  #68                 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      92: aload         12
      94: swap
      95: invokeinterface #72,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     100: pop
     101: iinc          7, 1
     104: goto          61
     107: aload         5
     109: checkcast     #74                 // class java/util/List
     112: nop
     113: checkcast     #45                 // class java/util/Collection
     116: invokestatic  #51                 // Method kotlin/collections/CollectionsKt.toIntArray:(Ljava/util/Collection;)[I
     119: invokestatic  #56                 // Method solve:([I)[J
     122: dup
     123: ifnonnull     137
     126: pop
     127: ldc           #76                 // String No
     129: getstatic     #82                 // Field java/lang/System.out:Ljava/io/PrintStream;
     132: swap
     133: invokevirtual #88                 // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
     136: return
     137: astore_1
     138: ldc           #90                 // String Yes
     140: getstatic     #82                 // Field java/lang/System.out:Ljava/io/PrintStream;
     143: swap
     144: invokevirtual #88                 // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
     147: aload_1
     148: ldc           #92                 // String
     150: checkcast     #94                 // class java/lang/CharSequence
     153: aconst_null
     154: aconst_null
     155: iconst_0
     156: aconst_null
     157: aconst_null
     158: bipush        62
     160: aconst_null
     161: invokestatic  #98                 // Method kotlin/collections/ArraysKt.joinToString$default:([JLjava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
     164: getstatic     #82                 // Field java/lang/System.out:Ljava/io/PrintStream;
     167: swap
     168: invokevirtual #88                 // Method java/io/PrintStream.println:(Ljava/lang/Object;)V
     171: return

  private static final java.lang.String readLn();
    Code:
       0: invokestatic  #113                // Method kotlin/io/ConsoleKt.readLine:()Ljava/lang/String;
       3: dup
       4: invokestatic  #118                // Method kotlin/jvm/internal/Intrinsics.checkNotNull:(Ljava/lang/Object;)V
       7: areturn

  private static final java.util.List<java.lang.String> readStrings();
    Code:
       0: invokestatic  #39                 // Method readLn:()Ljava/lang/String;
       3: checkcast     #94                 // class java/lang/CharSequence
       6: iconst_1
       7: anewarray     #122                // class java/lang/String
      10: astore_0
      11: aload_0
      12: iconst_0
      13: ldc           #92                 // String
      15: aastore
      16: aload_0
      17: iconst_0
      18: iconst_0
      19: bipush        6
      21: aconst_null
      22: invokestatic  #128                // Method kotlin/text/StringsKt.split$default:(Ljava/lang/CharSequence;[Ljava/lang/String;ZIILjava/lang/Object;)Ljava/util/List;
      25: areturn

  private static final java.util.List<java.lang.Integer> readInts();
    Code:
       0: invokestatic  #131                // Method readStrings:()Ljava/util/List;
       3: checkcast     #133                // class java/lang/Iterable
       6: astore_0
       7: iconst_0
       8: istore_1
       9: aload_0
      10: astore_2
      11: new           #58                 // class java/util/ArrayList
      14: dup
      15: aload_0
      16: bipush        10
      18: invokestatic  #137                // Method kotlin/collections/CollectionsKt.collectionSizeOrDefault:(Ljava/lang/Iterable;I)I
      21: invokespecial #62                 // Method java/util/ArrayList."<init>":(I)V
      24: checkcast     #45                 // class java/util/Collection
      27: astore_3
      28: iconst_0
      29: istore        4
      31: aload_2
      32: invokeinterface #141,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      37: astore        5
      39: aload         5
      41: invokeinterface #147,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
      46: ifeq          92
      49: aload         5
      51: invokeinterface #151,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      56: astore        6
      58: aload_3
      59: aload         6
      61: checkcast     #122                // class java/lang/String
      64: astore        7
      66: astore        9
      68: iconst_0
      69: istore        8
      71: aload         7
      73: invokestatic  #155                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
      76: nop
      77: invokestatic  #68                 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      80: aload         9
      82: swap
      83: invokeinterface #72,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      88: pop
      89: goto          39
      92: aload_3
      93: checkcast     #74                 // class java/util/List
      96: nop
      97: areturn

  public static void main(java.lang.String[]);
    Code:
       0: invokestatic  #162                // Method main:()V
       3: return

  private static final long solve$aSum(long[], int[]);
    Code:
       0: aload_0
       1: invokestatic  #168                // Method kotlin/collections/ArraysKt.getIndices:([J)Lkotlin/ranges/IntRange;
       4: checkcast     #133                // class java/lang/Iterable
       7: astore_2
       8: lconst_0
       9: lstore_3
      10: aload_2
      11: invokeinterface #141,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      16: astore        5
      18: aload         5
      20: invokeinterface #147,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
      25: ifeq          69
      28: aload         5
      30: checkcast     #170                // class kotlin/collections/IntIterator
      33: invokevirtual #174                // Method kotlin/collections/IntIterator.nextInt:()I
      36: istore        6
      38: lload_3
      39: iload         6
      41: istore        7
      43: lstore        9
      45: iconst_0
      46: istore        8
      48: aload_0
      49: iload         7
      51: laload
      52: aload_1
      53: iload         7
      55: iaload
      56: i2l
      57: lmul
      58: lstore        11
      60: lload         9
      62: lload         11
      64: ladd
      65: lstore_3
      66: goto          18
      69: lload_3
      70: lreturn
}