program ABC_077_A_Rotation
   implicit none
   integer i, countN
   character(3) c1, c2
   read(*, *) c1, c2
   countN = 0
   do i = 1, 3
       if(c1(i:i) == c2(4-i:4-i)) then
	       countN = countN + 1
	   end if
   end do
   if(countN == 3) then
       write(*, *) 'YES'
   else
       write(*, *) 'NO'
   end if
end program ABC_077_A_Rotation
; 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"

@_QQcl.295a09a07c8e20cdeebe00b9c968ef50 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6751/source.f\00"
@_QQcl.594553 = linkonce constant [3 x i8] c"YES"
@_QQcl.4E4F = linkonce constant [2 x i8] c"NO"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [3 x i8], align 1
  %2 = alloca [3 x i8], align 1
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.295a09a07c8e20cdeebe00b9c968ef50, i32 5)
  %4 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %1, i64 3)
  %5 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %2, i64 3)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = getelementptr inbounds [3 x [1 x i8]], ptr %2, i64 0, i64 2
  %8 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %7, i64 1, i64 1)
  %9 = icmp eq i32 %8, 0
  %10 = zext i1 %9 to i32
  %11 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 1
  %12 = getelementptr inbounds [3 x [1 x i8]], ptr %2, i64 0, i64 1
  %13 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %11, ptr nonnull %12, i64 1, i64 1)
  %14 = icmp eq i32 %13, 0
  %15 = zext i1 %14 to i32
  %spec.select.1 = add nuw nsw i32 %10, %15
  %16 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 2
  %17 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %16, ptr nonnull %2, i64 1, i64 1)
  %18 = icmp eq i32 %17, 0
  %19 = zext i1 %18 to i32
  %spec.select.2 = add nuw nsw i32 %spec.select.1, %19
  %20 = icmp eq i32 %spec.select.2, 3
  br i1 %20, label %21, label %24

21:                                               ; preds = %0
  %22 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.295a09a07c8e20cdeebe00b9c968ef50, i32 13)
  %23 = call i1 @_FortranAioOutputAscii(ptr %22, ptr nonnull @_QQcl.594553, i64 3)
  br label %27

24:                                               ; preds = %0
  %25 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.295a09a07c8e20cdeebe00b9c968ef50, i32 15)
  %26 = call i1 @_FortranAioOutputAscii(ptr %25, ptr nonnull @_QQcl.4E4F, i64 2)
  br label %27

27:                                               ; preds = %21, %24
  %.sink = phi ptr [ %22, %21 ], [ %25, %24 ]
  %28 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_FortranAioBeginExternalListOutput(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}
