program main
 implicit none
 character(len=3) S
 integer :: bus=0

 read *, S

 if ( S(1:1) /= S(2:2) ) bus=1
 if ( S(1:1) /= S(3:3) ) bus=1
 if ( S(2:2) /= S(3:3) ) bus=1

 if (bus==0) print '(A)','No'
 if (bus==1) print '(A)','Yes'

endprogram main

; ModuleID = 'FIRModule'
source_filename = "FIRModule"
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-pc-linux-gnu"

@_QFEbus = internal unnamed_addr global i1 false
@_QQcl.e8410eef39abbfad5a900053d33fd3ee = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2163/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [3 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e8410eef39abbfad5a900053d33fd3ee, i32 6)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 3)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 1
  %6 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %5, i64 1, i64 1)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %8, label %7

7:                                                ; preds = %0
  store i1 true, ptr @_QFEbus, align 1
  br label %8

8:                                                ; preds = %7, %0
  %9 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 2
  %10 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %9, i64 1, i64 1)
  %.not2 = icmp eq i32 %10, 0
  br i1 %.not2, label %12, label %11

11:                                               ; preds = %8
  store i1 true, ptr @_QFEbus, align 1
  br label %12

12:                                               ; preds = %11, %8
  %13 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %5, ptr nonnull %9, i64 1, i64 1)
  %.not3 = icmp eq i32 %13, 0
  br i1 %.not3, label %14, label %.thread

.thread:                                          ; preds = %12
  store i1 true, ptr @_QFEbus, align 1
  br label %.thread5

14:                                               ; preds = %12
  %.b1.pr = load i1, ptr @_QFEbus, align 1
  br i1 %.b1.pr, label %.thread5, label %15

15:                                               ; preds = %14
  %16 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.e8410eef39abbfad5a900053d33fd3ee, i32 12)
  %17 = call i1 @_FortranAioOutputAscii(ptr %16, ptr nonnull @_QQcl.4E6F, i64 2)
  %18 = call i32 @_FortranAioEndIoStatement(ptr %16)
  %.b.pr = load i1, ptr @_QFEbus, align 1
  br i1 %.b.pr, label %.thread5, label %22

.thread5:                                         ; preds = %14, %.thread, %15
  %19 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.e8410eef39abbfad5a900053d33fd3ee, i32 13)
  %20 = call i1 @_FortranAioOutputAscii(ptr %19, ptr nonnull @_QQcl.596573, i64 3)
  %21 = call i32 @_FortranAioEndIoStatement(ptr %19)
  br label %22

22:                                               ; preds = %.thread5, %15
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputAscii(ptr, ptr, i64) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare i32 @_FortranACharacterCompareScalar1(ptr, ptr, i64, i64) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
