      program b159

      character*100 S
      integer A,B


      read(*,*)S

      A = len_trim(S)
      B = (A-1)/2
      if(S(1:B) == S(A-B+1:A)) then
        
      write(*,*)"Yes"
      else
      write(*,*)"No"
      endif


      end program b159


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

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

define void @_QQmain() local_unnamed_addr {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.79f0f55ba4f994636635c23ba1d8ad2f, i32 7)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 100)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  br label %4

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

12:                                               ; preds = %4
  %13 = trunc i64 %5 to i32
  %14 = add i32 %13, 1
  %15 = select i1 %8, i32 0, i32 %14
  %16 = add i32 %15, -1
  %17 = sdiv i32 %16, 2
  %18 = tail call i32 @llvm.smax.i32(i32 %17, i32 0)
  %19 = zext i32 %18 to i64
  %20 = add i32 %15, 1
  %21 = sub i32 %20, %17
  %22 = sext i32 %21 to i64
  %23 = sext i32 %15 to i64
  %24 = add nsw i64 %22, -1
  %25 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %24
  %26 = sub nsw i64 %23, %22
  %27 = tail call i64 @llvm.smax.i64(i64 %26, i64 -1)
  %28 = add nsw i64 %27, 1
  %29 = tail call i32 @_FortranACharacterCompareScalar1(ptr nonnull @_QFEs, ptr %25, i64 %19, i64 %28)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %12
  %32 = tail call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.79f0f55ba4f994636635c23ba1d8ad2f, i32 13)
  %33 = tail call i1 @_FortranAioOutputAscii(ptr %32, ptr nonnull @_QQcl.596573, i64 3)
  br label %37

34:                                               ; preds = %12
  %35 = tail call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.79f0f55ba4f994636635c23ba1d8ad2f, i32 15)
  %36 = tail call i1 @_FortranAioOutputAscii(ptr %35, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %37

37:                                               ; preds = %31, %34
  %.sink = phi ptr [ %32, %31 ], [ %35, %34 ]
  %38 = tail 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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"}
