program abc159b
  implicit none
  integer :: i, l
  character :: a, b, c
  character(3) :: ans = 'Yes'
  character(100) :: s
  read *, s
  l = len_trim(s)
  do i = 1,l/2
     a = s(i:i)
     b = s(l+1-i:l+1-i)
     c = s(l/2+1+i:l/2+1+i)
     if (a/=b.or.a/=c) then
        ans = 'No'
        exit
     end if
  end do
  print *, ans
end program abc159b

; 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"

@_QFEans = internal global [3 x i8] c"Yes", align 2
@_QFEs = internal global [100 x i8] undef
@_QQcl.ab9f6c6312a38dd92af189175ca62047 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2021/source.f\00"
@_QQcl.4E6F = linkonce local_unnamed_addr constant [2 x i8] c"No"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [1 x i8], align 1
  %2 = alloca [1 x i8], align 1
  %3 = alloca [1 x i8], align 1
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.ab9f6c6312a38dd92af189175ca62047, i32 7)
  %5 = tail call i1 @_FortranAioInputAscii(ptr %4, ptr nonnull @_QFEs, i64 100)
  %6 = tail call i32 @_FortranAioEndIoStatement(ptr %4)
  br label %7

7:                                                ; preds = %0, %7
  %8 = phi i64 [ 99, %0 ], [ %12, %7 ]
  %9 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %8
  %10 = load i8, ptr %9, align 1, !tbaa !3
  %11 = icmp eq i8 %10, 32
  %12 = add nsw i64 %8, -1
  %13 = icmp ne i64 %8, 0
  %14 = and i1 %11, %13
  br i1 %14, label %7, label %15

15:                                               ; preds = %7
  %16 = trunc i64 %8 to i32
  %17 = add i32 %16, 1
  %18 = select i1 %11, i32 0, i32 %17
  %19 = icmp sgt i32 %18, 1
  br i1 %19, label %.lr.ph, label %.loopexit17

.lr.ph:                                           ; preds = %15
  %20 = lshr i32 %18, 1
  %21 = add nuw i32 %18, 1
  %22 = zext i32 %20 to i64
  %23 = add nuw nsw i32 %20, 1
  %wide.trip.count = zext i32 %23 to i64
  br label %24

24:                                               ; preds = %.lr.ph, %41
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %41 ]
  %25 = add nsw i64 %indvars.iv, -1
  %26 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %25
  %27 = load i8, ptr %26, align 1
  store i8 %27, ptr %1, align 1
  %28 = trunc i64 %indvars.iv to i32
  %29 = sub i32 %21, %28
  %30 = sext i32 %29 to i64
  %31 = add nsw i64 %30, -1
  %32 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1
  store i8 %33, ptr %2, align 1
  %34 = add nuw i64 %indvars.iv, %22
  %35 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %34
  %36 = load i8, ptr %35, align 1
  store i8 %36, ptr %3, align 1
  %37 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %2, i64 1, i64 1)
  %38 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull %3, i64 1, i64 1)
  %39 = or i32 %38, %37
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %41, label %.loopexit

.loopexit:                                        ; preds = %24
  %40 = load i16, ptr @_QQcl.4E6F, align 1
  store i16 %40, ptr @_QFEans, align 2
  store i8 32, ptr getelementptr inbounds ([3 x i8], ptr @_QFEans, i64 0, i64 2), align 2, !tbaa !3
  br label %.loopexit17

41:                                               ; preds = %24
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit17, label %24

.loopexit17:                                      ; preds = %41, %15, %.loopexit
  %42 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.ab9f6c6312a38dd92af189175ca62047, i32 18)
  %43 = call i1 @_FortranAioOutputAscii(ptr %42, ptr nonnull @_QFEans, i64 3)
  %44 = call i32 @_FortranAioEndIoStatement(ptr %42)
  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}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
