import Foundation

var s = readLine()!
if s[s.startIndex] != "A" { print("WA"); exit(0) }
let start = s.index(s.startIndex, offsetBy: 2)
let end = s.index(s.endIndex, offsetBy: -2)
var count = 0
var index: String.Index!
for (i, c) in s[start...end].enumerated() {
  if c == "C" {
    count += 1
    index = s.index(s.startIndex, offsetBy: i + 2)
  }
}
if count != 1 { print("WA"); exit(0) }
else { s.remove(at: index) }
s.removeFirst()
if s.lowercased() != s { print("WA"); exit(0) }
print("AC")
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2092/llvm_OZ.ll'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/Swift/Source_2092/llvm_OZ.ll"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%TSS = type <{ %Ts11_StringGutsV }>
%Ts11_StringGutsV = type <{ %Ts13_StringObjectV }>
%Ts13_StringObjectV = type <{ %Ts6UInt64V, %swift.bridge* }>
%Ts6UInt64V = type <{ i64 }>
%swift.bridge = type opaque
%TSS5IndexV = type <{ %Ts6UInt64V }>
%TSi = type <{ i64 }>
%TSS5IndexVSg = type <{ [8 x i8], [1 x i8] }>
%swift.type_descriptor = type opaque
%swift.type = type { i64 }
%swift.refcounted = type { %swift.type*, i64 }
%Ts28__ContiguousArrayStorageBaseC = type <{ %swift.refcounted, %Ts10_ArrayBodyV }>
%Ts10_ArrayBodyV = type <{ %TSo22_SwiftArrayBodyStorageV }>
%TSo22_SwiftArrayBodyStorageV = type <{ %TSi, %TSu }>
%TSu = type <{ i64 }>

@"$s7llvm_OZ1sSSvp" = hidden global %TSS zeroinitializer, align 8
@"$s7llvm_OZ5startSS5IndexVvp" = hidden local_unnamed_addr global %TSS5IndexV zeroinitializer, align 8
@"$s7llvm_OZ3endSS5IndexVvp" = hidden local_unnamed_addr global %TSS5IndexV zeroinitializer, align 8
@"$s7llvm_OZ5countSivp" = hidden global %TSi zeroinitializer, align 8
@"$s7llvm_OZ5indexSS5IndexVSgvp" = hidden global %TSS5IndexVSg zeroinitializer, align 8
@"$ss23_ContiguousArrayStorageCMn" = external global %swift.type_descriptor, align 4
@"got.$ss23_ContiguousArrayStorageCMn" = private unnamed_addr constant %swift.type_descriptor* @"$ss23_ContiguousArrayStorageCMn"
@"symbolic _____yypG s23_ContiguousArrayStorageC" = linkonce_odr hidden constant <{ i8, i32, [4 x i8], i8 }> <{ i8 2, i32 trunc (i64 sub (i64 ptrtoint (%swift.type_descriptor** @"got.$ss23_ContiguousArrayStorageCMn" to i64), i64 ptrtoint (i32* getelementptr inbounds (<{ i8, i32, [4 x i8], i8 }>, <{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC", i32 0, i32 1) to i64)) to i32), [4 x i8] c"yypG", i8 0 }>, section "swift5_typeref", no_sanitize_address, align 2
@"$ss23_ContiguousArrayStorageCyypGMD" = linkonce_odr hidden global { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (<{ i8, i32, [4 x i8], i8 }>* @"symbolic _____yypG s23_ContiguousArrayStorageC" to i64), i64 ptrtoint ({ i32, i32 }* @"$ss23_ContiguousArrayStorageCyypGMD" to i64)) to i32), i32 -9 }, align 8
@"$sSSN" = external global %swift.type, align 8
@"\01l_entry_point" = private constant { i32, i32 } { i32 trunc (i64 sub (i64 ptrtoint (i32 (i32, i8**)* @main to i64), i64 ptrtoint ({ i32, i32 }* @"\01l_entry_point" to i64)) to i32), i32 0 }, section "swift5_entry", align 4
@__swift_reflection_version = linkonce_odr hidden constant i16 3
@_swift1_autolink_entries = private constant [172 x i8] c"-lFoundation\00-lswiftCore\00-lswift_StringProcessing\00-lswift_RegexParser\00-lswift_Concurrency\00-lswiftGlibc\00-lm\00-lpthread\00-lutil\00-ldl\00-lswiftDispatch\00-ldispatch\00-lBlocksRuntime\00", section ".swift1_autolink_entries", no_sanitize_address, align 8
@llvm.compiler.used = appending global [4 x i8*] [i8* bitcast ({ i32, i32 }* @"\01l_entry_point" to i8*), i8* bitcast (i16* @__swift_reflection_version to i8*), i8* getelementptr inbounds ([172 x i8], [172 x i8]* @_swift1_autolink_entries, i32 0, i32 0), i8* bitcast (i32 (i32, i8**)* @main to i8*)], section "llvm.metadata"

; Function Attrs: minsize optsize
define protected i32 @main(i32 %0, i8** nocapture readnone %1) #0 {
entry:
  %access-scratch = alloca [24 x i8], align 8
  %access-scratch5 = alloca [24 x i8], align 8
  %access-scratch6 = alloca [24 x i8], align 8
  %access-scratch7 = alloca [24 x i8], align 8
  %access-scratch12 = alloca [24 x i8], align 8
  %access-scratch13 = alloca [24 x i8], align 8
  %access-scratch14 = alloca [24 x i8], align 8
  %2 = tail call swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1 true)
  %3 = extractvalue { i64, i64 } %2, 1
  %4 = icmp eq i64 %3, 0
  br i1 %4, label %156, label %5

5:                                                ; preds = %entry
  %6 = extractvalue { i64, i64 } %2, 0
  %7 = inttoptr i64 %3 to %swift.bridge*
  store i64 %6, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  store %swift.bridge* %7, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %8 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %8)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSS* @"$s7llvm_OZ1sSSvp" to i8*), [24 x i8]* nonnull %access-scratch, i64 0, i8* null) #3
  %9 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %10 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %11 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %10) #3
  %12 = call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 15, i64 %9, %swift.bridge* %10)
  call void @swift_bridgeObjectRelease(%swift.bridge* %10) #3
  %13 = extractvalue { i64, %swift.bridge* } %12, 0
  %14 = extractvalue { i64, %swift.bridge* } %12, 1
  %15 = icmp eq i64 %13, 65
  %16 = icmp eq %swift.bridge* %14, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond44 = select i1 %15, i1 %16, i1 false
  br i1 %or.cond44, label %17, label %18

17:                                               ; preds = %5
  call void @swift_bridgeObjectRelease(%swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*)) #3
  br label %29

18:                                               ; preds = %5
  %19 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %13, %swift.bridge* %14, i64 65, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i8 0)
  call void @swift_bridgeObjectRelease(%swift.bridge* %14) #3
  br i1 %19, label %29, label %20

20:                                               ; preds = %18
  %21 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #8
  %22 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %21, i64 64, i64 7) #3
  %23 = bitcast %swift.refcounted* %22 to %Ts28__ContiguousArrayStorageBaseC*
  %24 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %22, i64 1
  %._storage.count._value = bitcast %swift.refcounted* %24 to i64*
  store i64 1, i64* %._storage.count._value, align 8
  %._storage._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %22, i64 1, i32 1
  store i64 2, i64* %._storage._capacityAndFlags, align 8
  %25 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %22, i64 2
  %26 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %22, i64 3, i32 1
  %27 = bitcast i64* %26 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %27, align 8
  %._guts._object._countAndFlagsBits._value = bitcast %swift.refcounted* %25 to i64*
  store i64 16727, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %22, i64 2, i32 1
  %28 = bitcast i64* %._guts._object._object to %swift.bridge**
  store %swift.bridge* inttoptr (i64 -2161727821137838080 to %swift.bridge*), %swift.bridge** %28, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %23, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %22) #3
  call void @exit(i32 0)
  unreachable

29:                                               ; preds = %18, %17
  %30 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %31 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %32 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %31) #3
  %33 = call swiftcc i64 @"$sSS5index_8offsetBySS5IndexVAD_SitF"(i64 15, i64 2, i64 %30, %swift.bridge* %31)
  call void @swift_bridgeObjectRelease(%swift.bridge* %31) #3
  store i64 %33, i64* getelementptr inbounds (%TSS5IndexV, %TSS5IndexV* @"$s7llvm_OZ5startSS5IndexVvp", i64 0, i32 0, i32 0), align 8
  %34 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %35 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %36 = ptrtoint %swift.bridge* %35 to i64
  %37 = and i64 %36, 2305843009213693952
  %38 = icmp eq i64 %37, 0
  %39 = lshr i64 %36, 56
  %40 = and i64 %39, 15
  %41 = select i1 %38, i64 %34, i64 %40
  %42 = shl i64 %41, 16
  %43 = and i64 %36, 1152921504606846976
  %44 = icmp ne i64 %43, 0
  %45 = and i64 %34, 576460752303423488
  %46 = icmp eq i64 %45, 0
  %or.cond = select i1 %44, i1 %46, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %47 = or i64 %42, %.v
  %48 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %35) #3
  %49 = call swiftcc i64 @"$sSS5index_8offsetBySS5IndexVAD_SitF"(i64 %47, i64 -2, i64 %34, %swift.bridge* %35)
  call void @swift_bridgeObjectRelease(%swift.bridge* %35) #3
  store i64 %49, i64* getelementptr inbounds (%TSS5IndexV, %TSS5IndexV* @"$s7llvm_OZ3endSS5IndexVvp", i64 0, i32 0, i32 0), align 8
  store i64 0, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ5countSivp", i64 0, i32 0), align 8
  store i64 0, i64* bitcast (%TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp" to i64*), align 8
  store i1 true, i1* bitcast ([1 x i8]* getelementptr inbounds (%TSS5IndexVSg, %TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp", i64 0, i32 1) to i1*), align 8
  %50 = load i64, i64* getelementptr inbounds (%TSS5IndexV, %TSS5IndexV* @"$s7llvm_OZ5startSS5IndexVvp", i64 0, i32 0, i32 0), align 8
  %51 = lshr i64 %49, 14
  %52 = lshr i64 %50, 14
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %157, label %54, !prof !6

54:                                               ; preds = %29
  %55 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %56 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %57 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %55) #3
  %58 = call swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64 %49, i64 %56, %swift.bridge* %55)
  %59 = call swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64 %50, i64 %58, i64 %56, %swift.bridge* %55)
  call void @swift_bridgeObjectRelease(%swift.bridge* %55) #3
  %60 = extractvalue { i64, i64, i64, %swift.bridge* } %59, 0
  %61 = extractvalue { i64, i64, i64, %swift.bridge* } %59, 1
  %62 = extractvalue { i64, i64, i64, %swift.bridge* } %59, 2
  %63 = extractvalue { i64, i64, i64, %swift.bridge* } %59, 3
  %64 = lshr i64 %61, 14
  %65 = lshr i64 %60, 14
  %66 = icmp eq i64 %65, %64
  br i1 %66, label %.loopexit, label %67

67:                                               ; preds = %54
  %68 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch5, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %68)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_OZ5countSivp" to i8*), [24 x i8]* nonnull %access-scratch5, i64 1, i8* null) #3
  %69 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch6, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %69)
  call void @swift_beginAccess(i8* nonnull getelementptr inbounds (%TSS5IndexVSg, %TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp", i64 0, i32 0, i64 0), [24 x i8]* nonnull %access-scratch6, i64 1, i8* null) #3
  br label %70

70:                                               ; preds = %103, %67
  %71 = phi i64 [ 0, %67 ], [ %79, %103 ]
  %72 = phi i64 [ %60, %67 ], [ %77, %103 ]
  %73 = call swiftcc { i64, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64 %72, i64 %60, i64 %61, i64 %62, %swift.bridge* %63)
  %74 = extractvalue { i64, %swift.bridge* } %73, 0
  %75 = extractvalue { i64, %swift.bridge* } %73, 1
  %76 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %63) #3
  %77 = call swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64 %72, i64 %60, i64 %61, i64 %62, %swift.bridge* %63)
  call void @swift_bridgeObjectRelease(%swift.bridge* %63) #3
  %78 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %71, i64 1)
  %79 = extractvalue { i64, i1 } %78, 0
  %80 = extractvalue { i64, i1 } %78, 1
  br i1 %80, label %158, label %81, !prof !6

81:                                               ; preds = %70
  %82 = icmp eq i64 %74, 67
  %83 = icmp eq %swift.bridge* %75, inttoptr (i64 -2233785415175766016 to %swift.bridge*)
  %or.cond45 = select i1 %82, i1 %83, i1 false
  br i1 %or.cond45, label %89, label %84

84:                                               ; preds = %81
  %85 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %74, %swift.bridge* %75, i64 67, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i8 0)
  br i1 %85, label %89, label %103

.loopexit:                                        ; preds = %103, %54
  call void @swift_bridgeObjectRelease(%swift.bridge* %63) #3
  %86 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch7, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %86)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSi* @"$s7llvm_OZ5countSivp" to i8*), [24 x i8]* nonnull %access-scratch7, i64 0, i8* null) #3
  %87 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ5countSivp", i64 0, i32 0), align 8
  %88 = icmp eq i64 %87, 1
  br i1 %88, label %115, label %106

89:                                               ; preds = %81, %84
  %90 = load i64, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ5countSivp", i64 0, i32 0), align 8
  %91 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %90, i64 1)
  %92 = extractvalue { i64, i1 } %91, 1
  br i1 %92, label %160, label %93, !prof !6

93:                                               ; preds = %89
  %94 = extractvalue { i64, i1 } %91, 0
  store i64 %94, i64* getelementptr inbounds (%TSi, %TSi* @"$s7llvm_OZ5countSivp", i64 0, i32 0), align 8
  %95 = call { i64, i1 } @llvm.sadd.with.overflow.i64(i64 %71, i64 2)
  %96 = extractvalue { i64, i1 } %95, 1
  br i1 %96, label %161, label %97, !prof !6

97:                                               ; preds = %93
  %98 = extractvalue { i64, i1 } %95, 0
  %99 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %100 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %101 = call %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned %99) #3
  %102 = call swiftcc i64 @"$sSS5index_8offsetBySS5IndexVAD_SitF"(i64 15, i64 %98, i64 %100, %swift.bridge* %99)
  call void @swift_bridgeObjectRelease(%swift.bridge* %99) #3
  store i64 %102, i64* bitcast (%TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp" to i64*), align 8
  store i1 false, i1* bitcast ([1 x i8]* getelementptr inbounds (%TSS5IndexVSg, %TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp", i64 0, i32 1) to i1*), align 8
  br label %103

103:                                              ; preds = %84, %97
  call void @swift_bridgeObjectRelease(%swift.bridge* %75) #3
  %104 = lshr i64 %77, 14
  %105 = icmp eq i64 %104, %64
  br i1 %105, label %.loopexit, label %70

106:                                              ; preds = %.loopexit
  %107 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #8
  %108 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %107, i64 64, i64 7) #3
  %109 = bitcast %swift.refcounted* %108 to %Ts28__ContiguousArrayStorageBaseC*
  %110 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %108, i64 1
  %._storage8.count._value = bitcast %swift.refcounted* %110 to i64*
  store i64 1, i64* %._storage8.count._value, align 8
  %._storage8._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %108, i64 1, i32 1
  store i64 2, i64* %._storage8._capacityAndFlags, align 8
  %111 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %108, i64 2
  %112 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %108, i64 3, i32 1
  %113 = bitcast i64* %112 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %113, align 8
  %._guts11._object._countAndFlagsBits._value = bitcast %swift.refcounted* %111 to i64*
  store i64 16727, i64* %._guts11._object._countAndFlagsBits._value, align 8
  %._guts11._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %108, i64 2, i32 1
  %114 = bitcast i64* %._guts11._object._object to %swift.bridge**
  store %swift.bridge* inttoptr (i64 -2161727821137838080 to %swift.bridge*), %swift.bridge** %114, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %109, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %108) #3
  call void @exit(i32 0)
  unreachable

115:                                              ; preds = %.loopexit
  %116 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch12, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %116)
  call void @swift_beginAccess(i8* nonnull getelementptr inbounds (%TSS5IndexVSg, %TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp", i64 0, i32 0, i64 0), [24 x i8]* nonnull %access-scratch12, i64 0, i8* null) #3
  %117 = load i1, i1* bitcast ([1 x i8]* getelementptr inbounds (%TSS5IndexVSg, %TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp", i64 0, i32 1) to i1*), align 8
  br i1 %117, label %159, label %118

118:                                              ; preds = %115
  %119 = load i64, i64* bitcast (%TSS5IndexVSg* @"$s7llvm_OZ5indexSS5IndexVSgvp" to i64*), align 8
  %120 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch13, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %120)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSS* @"$s7llvm_OZ1sSSvp" to i8*), [24 x i8]* nonnull %access-scratch13, i64 33, i8* null) #3
  %121 = call swiftcc { i64, %swift.bridge* } @"$sSS6remove2atSJSS5IndexV_tF"(i64 %119, %TSS* nocapture nonnull swiftself dereferenceable(16) @"$s7llvm_OZ1sSSvp")
  %122 = extractvalue { i64, %swift.bridge* } %121, 1
  call void @swift_endAccess([24 x i8]* nonnull %access-scratch13) #3
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %120)
  call void @swift_bridgeObjectRelease(%swift.bridge* %122) #3
  %123 = getelementptr inbounds [24 x i8], [24 x i8]* %access-scratch14, i64 0, i64 0
  call void @llvm.lifetime.start.p0i8(i64 -1, i8* nonnull %123)
  call void @swift_beginAccess(i8* nonnull bitcast (%TSS* @"$s7llvm_OZ1sSSvp" to i8*), [24 x i8]* nonnull %access-scratch14, i64 33, i8* null) #3
  %124 = call swiftcc { i64, %swift.bridge* } @"$sSmsE11removeFirst7ElementQzyFSS_Tg5"(%TSS* nocapture nonnull swiftself dereferenceable(16) @"$s7llvm_OZ1sSSvp")
  %125 = extractvalue { i64, %swift.bridge* } %124, 1
  call void @swift_endAccess([24 x i8]* nonnull %access-scratch14) #3
  call void @llvm.lifetime.end.p0i8(i64 -1, i8* nonnull %123)
  call void @swift_bridgeObjectRelease(%swift.bridge* %125) #3
  %126 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %127 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %128 = call swiftcc { i64, %swift.bridge* } @"$sSS10lowercasedSSyF"(i64 %126, %swift.bridge* %127)
  %129 = extractvalue { i64, %swift.bridge* } %128, 0
  %130 = extractvalue { i64, %swift.bridge* } %128, 1
  %131 = load i64, i64* getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 0, i32 0), align 8
  %132 = load %swift.bridge*, %swift.bridge** getelementptr inbounds (%TSS, %TSS* @"$s7llvm_OZ1sSSvp", i64 0, i32 0, i32 0, i32 1), align 8
  %133 = icmp eq i64 %129, %131
  %134 = icmp eq %swift.bridge* %130, %132
  %or.cond46 = select i1 %133, i1 %134, i1 false
  br i1 %or.cond46, label %135, label %136

135:                                              ; preds = %118
  call void @swift_bridgeObjectRelease(%swift.bridge* %130) #3
  br label %147

136:                                              ; preds = %118
  %137 = call swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64 %129, %swift.bridge* %130, i64 %131, %swift.bridge* %132, i8 0)
  call void @swift_bridgeObjectRelease(%swift.bridge* %130) #3
  br i1 %137, label %147, label %138

138:                                              ; preds = %136
  %139 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #8
  %140 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %139, i64 64, i64 7) #3
  %141 = bitcast %swift.refcounted* %140 to %Ts28__ContiguousArrayStorageBaseC*
  %142 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %140, i64 1
  %._storage15.count._value = bitcast %swift.refcounted* %142 to i64*
  store i64 1, i64* %._storage15.count._value, align 8
  %._storage15._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %140, i64 1, i32 1
  store i64 2, i64* %._storage15._capacityAndFlags, align 8
  %143 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %140, i64 2
  %144 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %140, i64 3, i32 1
  %145 = bitcast i64* %144 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %145, align 8
  %._guts18._object._countAndFlagsBits._value = bitcast %swift.refcounted* %143 to i64*
  store i64 16727, i64* %._guts18._object._countAndFlagsBits._value, align 8
  %._guts18._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %140, i64 2, i32 1
  %146 = bitcast i64* %._guts18._object._object to %swift.bridge**
  store %swift.bridge* inttoptr (i64 -2161727821137838080 to %swift.bridge*), %swift.bridge** %146, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %141, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %140) #3
  call void @exit(i32 0)
  unreachable

147:                                              ; preds = %136, %135
  %148 = call %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* nonnull @"$ss23_ContiguousArrayStorageCyypGMD") #8
  %149 = call noalias %swift.refcounted* @swift_allocObject(%swift.type* %148, i64 64, i64 7) #3
  %150 = bitcast %swift.refcounted* %149 to %Ts28__ContiguousArrayStorageBaseC*
  %151 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %149, i64 1
  %._storage19.count._value = bitcast %swift.refcounted* %151 to i64*
  store i64 1, i64* %._storage19.count._value, align 8
  %._storage19._capacityAndFlags = getelementptr inbounds %swift.refcounted, %swift.refcounted* %149, i64 1, i32 1
  store i64 2, i64* %._storage19._capacityAndFlags, align 8
  %152 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %149, i64 2
  %153 = getelementptr inbounds %swift.refcounted, %swift.refcounted* %149, i64 3, i32 1
  %154 = bitcast i64* %153 to %swift.type**
  store %swift.type* @"$sSSN", %swift.type** %154, align 8
  %._guts22._object._countAndFlagsBits._value = bitcast %swift.refcounted* %152 to i64*
  store i64 17217, i64* %._guts22._object._countAndFlagsBits._value, align 8
  %._guts22._object._object = getelementptr inbounds %swift.refcounted, %swift.refcounted* %149, i64 2, i32 1
  %155 = bitcast i64* %._guts22._object._object to %swift.bridge**
  store %swift.bridge* inttoptr (i64 -2161727821137838080 to %swift.bridge*), %swift.bridge** %155, align 8
  call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC* %150, i64 32, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*), i64 10, %swift.bridge* nonnull inttoptr (i64 -2233785415175766016 to %swift.bridge*))
  call void @swift_release(%swift.refcounted* %149) #3
  ret i32 0

156:                                              ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #3
  tail call void @llvm.trap()
  unreachable

157:                                              ; preds = %29
  call void asm sideeffect "", "n"(i32 1) #3
  call void @llvm.trap()
  unreachable

158:                                              ; preds = %70
  call void asm sideeffect "", "n"(i32 2) #3
  call void @llvm.trap()
  unreachable

159:                                              ; preds = %115
  call void asm sideeffect "", "n"(i32 3) #3
  call void @llvm.trap()
  unreachable

160:                                              ; preds = %89
  call void asm sideeffect "", "n"(i32 4) #3
  call void @llvm.trap()
  unreachable

161:                                              ; preds = %93
  call void asm sideeffect "", "n"(i32 5) #3
  call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
declare swiftcc { i64, i64 } @"$ss8readLine16strippingNewlineSSSgSb_tF"(i1) local_unnamed_addr #0

; Function Attrs: cold noreturn nounwind
declare void @llvm.trap() #1

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.start.p0i8(i64 immarg, i8* nocapture) #2

; Function Attrs: nounwind
declare void @swift_beginAccess(i8*, [24 x i8]*, i64, i8*) local_unnamed_addr #3

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: nounwind
declare %swift.bridge* @swift_bridgeObjectRetain(%swift.bridge* returned) local_unnamed_addr #3

; Function Attrs: nounwind
declare void @swift_bridgeObjectRelease(%swift.bridge*) local_unnamed_addr #3

; Function Attrs: argmemonly mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture) #2

; Function Attrs: minsize optsize
declare swiftcc i1 @"$ss27_stringCompareWithSmolCheck__9expectingSbs11_StringGutsV_ADs01_G16ComparisonResultOtF"(i64, %swift.bridge*, i64, %swift.bridge*, i8) local_unnamed_addr #0

; Function Attrs: minsize mustprogress nofree noinline nounwind optsize readonly willreturn
define linkonce_odr hidden %swift.type* @__swift_instantiateConcreteTypeFromMangledName({ i32, i32 }* %0) local_unnamed_addr #4 {
entry:
  %1 = bitcast { i32, i32 }* %0 to i64*
  %2 = load atomic i64, i64* %1 monotonic, align 8
  %3 = icmp slt i64 %2, 0
  br i1 %3, label %7, label %4, !prof !6

4:                                                ; preds = %7, %entry
  %5 = phi i64 [ %2, %entry ], [ %15, %7 ]
  %6 = inttoptr i64 %5 to %swift.type*
  ret %swift.type* %6

7:                                                ; preds = %entry
  %8 = ashr i64 %2, 32
  %9 = sub nsw i64 0, %8
  %sext = shl i64 %2, 32
  %10 = ashr exact i64 %sext, 32
  %11 = ptrtoint { i32, i32 }* %0 to i64
  %12 = add i64 %10, %11
  %13 = inttoptr i64 %12 to i8*
  %14 = tail call swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8* %13, i64 %9, %swift.type_descriptor* null, i8** null) #9
  %15 = ptrtoint %swift.type* %14 to i64
  store atomic i64 %15, i64* %1 monotonic, align 8
  br label %4
}

; Function Attrs: argmemonly nounwind
declare swiftcc %swift.type* @swift_getTypeByMangledNameInContext2(i8*, i64, %swift.type_descriptor*, i8**) local_unnamed_addr #5

; Function Attrs: nounwind
declare %swift.refcounted* @swift_allocObject(%swift.type*, i64, i64) local_unnamed_addr #3

; Function Attrs: minsize optsize
declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(%Ts28__ContiguousArrayStorageBaseC*, i64, %swift.bridge*, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @swift_release(%swift.refcounted*) local_unnamed_addr #3

; Function Attrs: noreturn nounwind optsize
declare void @exit(i32 noundef) local_unnamed_addr #6

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSS5index_8offsetBySS5IndexVAD_SitF"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSS5index5afterSS5IndexVAD_tF"(i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc { i64, i64, i64, %swift.bridge* } @"$sSSySsSnySS5IndexVGcig"(i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSsySJSS5IndexVcig"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc i64 @"$sSs5index5afterSS5IndexVAD_tF"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn
declare { i64, i1 } @llvm.sadd.with.overflow.i64(i64, i64) #7

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSS6remove2atSJSS5IndexV_tF"(i64, %TSS* nocapture swiftself dereferenceable(16)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @swift_endAccess([24 x i8]*) local_unnamed_addr #3

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, %swift.bridge* } @"$sSmsE11removeFirst7ElementQzyFSS_Tg5"(%TSS* nocapture swiftself dereferenceable(16) %0) local_unnamed_addr #0 {
entry:
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %0, i64 0, i32 0, i32 0, i32 0, i32 0
  %1 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %0, i64 0, i32 0, i32 0, i32 1
  %2 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %3 = ptrtoint %swift.bridge* %2 to i64
  %4 = and i64 %3, 2305843009213693952
  %5 = icmp eq i64 %4, 0
  %6 = lshr i64 %3, 56
  %7 = and i64 %6, 15
  %8 = and i64 %1, 281474976710655
  %9 = select i1 %5, i64 %8, i64 %7
  %10 = icmp eq i64 %9, 0
  br i1 %10, label %20, label %11, !prof !6

11:                                               ; preds = %entry
  %12 = tail call swiftcc { i64, i64 } @"$sSlsE5first7ElementQzSgvgSS_Tg5"(i64 %1, %swift.bridge* %2)
  %13 = extractvalue { i64, i64 } %12, 1
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %21, label %15

15:                                               ; preds = %11
  %16 = extractvalue { i64, i64 } %12, 0
  %17 = inttoptr i64 %13 to %swift.bridge*
  tail call swiftcc void @"$sSmsE11removeFirstyySiFSS_Tgq5"(i64 1, %TSS* nocapture nonnull swiftself dereferenceable(16) %0)
  %18 = insertvalue { i64, %swift.bridge* } undef, i64 %16, 0
  %19 = insertvalue { i64, %swift.bridge* } %18, %swift.bridge* %17, 1
  ret { i64, %swift.bridge* } %19

20:                                               ; preds = %entry
  tail call void asm sideeffect "", "n"(i32 0) #3
  tail call void @llvm.trap()
  unreachable

21:                                               ; preds = %11
  tail call void asm sideeffect "", "n"(i32 1) #3
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
declare swiftcc { i64, %swift.bridge* } @"$sSS10lowercasedSSyF"(i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc { i64, i64 } @"$sSlsE5first7ElementQzSgvgSS_Tg5"(i64 %0, %swift.bridge* %1) local_unnamed_addr #0 {
entry:
  %2 = ptrtoint %swift.bridge* %1 to i64
  %3 = and i64 %2, 2305843009213693952
  %4 = icmp eq i64 %3, 0
  %5 = lshr i64 %2, 56
  %6 = and i64 %5, 15
  %7 = select i1 %4, i64 %0, i64 %6
  %8 = and i64 %7, 281474976710655
  %9 = icmp eq i64 %8, 0
  br i1 %9, label %15, label %10

10:                                               ; preds = %entry
  %11 = tail call swiftcc { i64, %swift.bridge* } @"$sSSySJSS5IndexVcig"(i64 15, i64 %0, %swift.bridge* %1)
  %12 = extractvalue { i64, %swift.bridge* } %11, 0
  %13 = extractvalue { i64, %swift.bridge* } %11, 1
  %14 = ptrtoint %swift.bridge* %13 to i64
  br label %15

15:                                               ; preds = %entry, %10
  %16 = phi i64 [ %12, %10 ], [ 0, %entry ]
  %17 = phi i64 [ %14, %10 ], [ 0, %entry ]
  %18 = insertvalue { i64, i64 } undef, i64 %16, 0
  %19 = insertvalue { i64, i64 } %18, i64 %17, 1
  ret { i64, i64 } %19
}

; Function Attrs: minsize optsize
define linkonce_odr hidden swiftcc void @"$sSmsE11removeFirstyySiFSS_Tgq5"(i64 %0, %TSS* nocapture swiftself dereferenceable(16) %1) local_unnamed_addr #0 {
entry:
  %2 = icmp eq i64 %0, 0
  br i1 %2, label %25, label %3

3:                                                ; preds = %entry
  %4 = icmp slt i64 %0, 0
  br i1 %4, label %26, label %5, !prof !6

5:                                                ; preds = %3
  %._guts._object._countAndFlagsBits._value = getelementptr inbounds %TSS, %TSS* %1, i64 0, i32 0, i32 0, i32 0, i32 0
  %6 = load i64, i64* %._guts._object._countAndFlagsBits._value, align 8
  %._guts._object._object = getelementptr inbounds %TSS, %TSS* %1, i64 0, i32 0, i32 0, i32 1
  %7 = load %swift.bridge*, %swift.bridge** %._guts._object._object, align 8
  %8 = ptrtoint %swift.bridge* %7 to i64
  %9 = and i64 %8, 2305843009213693952
  %10 = icmp eq i64 %9, 0
  %11 = lshr i64 %8, 56
  %12 = and i64 %11, 15
  %13 = select i1 %10, i64 %6, i64 %12
  %14 = shl i64 %13, 16
  %15 = and i64 %8, 1152921504606846976
  %16 = icmp ne i64 %15, 0
  %17 = and i64 %6, 576460752303423488
  %18 = icmp eq i64 %17, 0
  %or.cond = select i1 %16, i1 %18, i1 false
  %.v = select i1 %or.cond, i64 11, i64 7
  %19 = or i64 %14, %.v
  %20 = tail call swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64 15, i64 %0, i64 %19, i64 %6, %swift.bridge* %7)
  %21 = extractvalue { i64, i8 } %20, 1
  %22 = and i8 %21, 1
  %.not = icmp eq i8 %22, 0
  br i1 %.not, label %23, label %27

23:                                               ; preds = %5
  %24 = extractvalue { i64, i8 } %20, 0
  tail call swiftcc void @"$sSS14removeSubrangeyySnySS5IndexVGF"(i64 15, i64 %24, %TSS* nocapture nonnull swiftself dereferenceable(16) %1)
  br label %25

25:                                               ; preds = %entry, %23
  ret void

26:                                               ; preds = %3
  tail call void asm sideeffect "", "n"(i32 0) #3
  tail call void @llvm.trap()
  unreachable

27:                                               ; preds = %5
  tail call void asm sideeffect "", "n"(i32 1) #3
  tail call void @llvm.trap()
  unreachable
}

; Function Attrs: minsize optsize
declare swiftcc { i64, i8 } @"$sSS5index_8offsetBy07limitedC0SS5IndexVSgAE_SiAEtF"(i64, i64, i64, i64, %swift.bridge*) local_unnamed_addr #0

; Function Attrs: minsize optsize
declare swiftcc void @"$sSS14removeSubrangeyySnySS5IndexVGF"(i64, i64, %TSS* nocapture swiftself dereferenceable(16)) local_unnamed_addr #0

attributes #0 = { minsize optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { cold noreturn nounwind }
attributes #2 = { argmemonly mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { nounwind }
attributes #4 = { minsize mustprogress nofree noinline nounwind optsize readonly willreturn "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { argmemonly nounwind }
attributes #6 = { noreturn nounwind optsize "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind readnone speculatable willreturn }
attributes #8 = { nounwind readonly }
attributes #9 = { argmemonly nounwind readonly }

!swift.module.flags = !{!0}
!llvm.linker.options = !{}
!llvm.module.flags = !{!1, !2, !3, !4, !5}

!0 = !{!"standard-library", i1 false}
!1 = !{i32 1, !"wchar_size", i32 4}
!2 = !{i32 8, !"PIC Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{i32 4, !"Objective-C Garbage Collection", i32 84477696}
!5 = !{i32 1, !"Swift Version", i32 7}
!6 = !{!"branch_weights", i32 1, i32 2000}
