program main
  implicit none
  integer i, N, ans
  character(100) S
  read(*, *) S
  ans = 1
  !read(*, *) (L(i), i = 1,N)
  N = len(trim(S))
  do i = 1,N
    if (mod(i,2) == 1 .and. S(i:i) == 'L') then
      ans = 0
    else if (mod(i,2) == 0 .and. S(i:i) == 'R') then
      ans = 0
    endif
  end do
  if (ans == 0) then
    write(*, *) 'No'
  else
    write(*, *) 'Yes'
  end if
end program 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"

@_QFEs = internal global [100 x i8] undef
@_QQcl.86ba8cef1588716532e767f1e38bf3c9 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_3239/source.f\00"
@_QQcl.4C = linkonce constant [1 x i8] c"L"
@_QQcl.52 = linkonce constant [1 x i8] c"R"
@_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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.86ba8cef1588716532e767f1e38bf3c9, i32 5)
  %4 = tail call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull @_QFEs, i64 100)
  %5 = tail call i32 @_FortranAioEndIoStatement(ptr %3)
  store ptr @_QFEs, ptr %1, align 8, !tbaa !3
  %.fca.1.gep13 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 100, ptr %.fca.1.gep13, align 8, !tbaa !3
  %.fca.2.gep14 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep14, align 8, !tbaa !3
  %.fca.3.gep15 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep15, align 4, !tbaa !3
  %.fca.4.gep16 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep16, align 1, !tbaa !3
  %.fca.5.gep17 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep17, align 2, !tbaa !3
  %.fca.6.gep18 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep18, align 1, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %2, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !3
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep, align 1, !tbaa !3
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !3
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %6 = call {} @_FortranATrim(ptr nonnull %2, ptr nonnull %1, ptr nonnull @_QQcl.86ba8cef1588716532e767f1e38bf3c9, i32 8)
  %.fca.0.load = load ptr, ptr %2, align 8, !tbaa !3
  %.fca.1.load = load i64, ptr %.fca.1.gep, align 8, !tbaa !3
  call void @free(ptr %.fca.0.load)
  %7 = trunc i64 %.fca.1.load to i32
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %0
  %9 = and i64 %.fca.1.load, 4294967295
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %22
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %22 ]
  %10 = phi i64 [ %9, %.lr.ph.preheader ], [ %23, %22 ]
  %.053 = phi i32 [ 1, %.lr.ph.preheader ], [ %.1, %22 ]
  %11 = trunc i64 %indvars.iv to i32
  %.urem = and i32 %11, 1
  %12 = icmp ne i32 %.urem, 0
  %13 = add nsw i64 %indvars.iv, -1
  %14 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %13
  %15 = call i32 @_FortranACharacterCompareScalar1(ptr %14, ptr nonnull @_QQcl.4C, i64 1, i64 1)
  %16 = icmp eq i32 %15, 0
  %17 = and i1 %12, %16
  br i1 %17, label %22, label %18

18:                                               ; preds = %.lr.ph
  %19 = call i32 @_FortranACharacterCompareScalar1(ptr %14, ptr nonnull @_QQcl.52, i64 1, i64 1)
  %20 = or i32 %19, %.urem
  %21 = icmp eq i32 %20, 0
  %spec.select = select i1 %21, i32 0, i32 %.053
  br label %22

22:                                               ; preds = %18, %.lr.ph
  %.1 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %18 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = add nsw i64 %10, -1
  %24 = icmp sgt i64 %10, 1
  br i1 %24, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %22
  %25 = icmp eq i32 %.1, 0
  br i1 %25, label %26, label %._crit_edge.thread

26:                                               ; preds = %._crit_edge
  %27 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.86ba8cef1588716532e767f1e38bf3c9, i32 17)
  %28 = call i1 @_FortranAioOutputAscii(ptr %27, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %31

._crit_edge.thread:                               ; preds = %0, %._crit_edge
  %29 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.86ba8cef1588716532e767f1e38bf3c9, i32 19)
  %30 = call i1 @_FortranAioOutputAscii(ptr %29, ptr nonnull @_QQcl.596573, i64 3)
  br label %31

31:                                               ; preds = %26, %._crit_edge.thread
  %.sink = phi ptr [ %27, %26 ], [ %29, %._crit_edge.thread ]
  %32 = 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 {} @_FortranATrim(ptr, ptr, ptr, i32) 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"descriptor member", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
