program kadai
implicit none
character(len=100)  ::  S
integer  ::  i,size,flag,gu

read(*,*) S

size=len_trim(S)
flag=0

do i=1,size
    gu=mod(i,2)
    if (gu==0) then
        if (S(i:i)=="R") then
            flag=1
            exit
        end if
    else if (gu==1) then
    if (S(i:i)=="L") then
            flag=1
            exit
        end if
    end if
end do

if (flag==1) then
    write(*,*) "No"
else
    write(*,*) "Yes"
end if
stop
contains

end program kadai
; 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.e98b32bf1c771523c1b52cc2785f06b9 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_3242/source.f\00"
@_QQcl.52 = linkonce constant [1 x i8] c"R"
@_QQcl.4C = linkonce constant [1 x i8] c"L"
@_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: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.e98b32bf1c771523c1b52cc2785f06b9, i32 6)
  %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
  %spec.select = select i1 %8, i32 0, i32 %14
  %15 = icmp sgt i32 %spec.select, 0
  br i1 %15, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %12
  %16 = add nuw i32 %spec.select, 1
  %wide.trip.count = zext i32 %16 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %select.unfold
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %select.unfold ]
  %17 = and i64 %indvars.iv, 1
  %.not = icmp eq i64 %17, 0
  %18 = add nsw i64 %indvars.iv, -1
  %19 = getelementptr [100 x [1 x i8]], ptr @_QFEs, i64 0, i64 %18
  br i1 %.not, label %20, label %23

20:                                               ; preds = %.lr.ph
  %21 = tail call i32 @_FortranACharacterCompareScalar1(ptr %19, ptr nonnull @_QQcl.52, i64 1, i64 1)
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %.critedge, label %select.unfold

23:                                               ; preds = %.lr.ph
  %24 = tail call i32 @_FortranACharacterCompareScalar1(ptr %19, ptr nonnull @_QQcl.4C, i64 1, i64 1)
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %.critedge, label %select.unfold

select.unfold:                                    ; preds = %20, %23
  %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 %.critedge, label %.lr.ph

.critedge:                                        ; preds = %select.unfold, %23, %20, %12
  %.sink = phi i32 [ 29, %12 ], [ 27, %20 ], [ 27, %23 ], [ 29, %select.unfold ]
  %.sink22 = phi i64 [ 3, %12 ], [ 2, %20 ], [ 2, %23 ], [ 3, %select.unfold ]
  %_QQcl.4E6F.sink = phi ptr [ @_QQcl.596573, %12 ], [ @_QQcl.4E6F, %20 ], [ @_QQcl.4E6F, %23 ], [ @_QQcl.596573, %select.unfold ]
  %26 = tail call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.e98b32bf1c771523c1b52cc2785f06b9, i32 %.sink)
  %27 = tail call i1 @_FortranAioOutputAscii(ptr %26, ptr nonnull %_QQcl.4E6F.sink, i64 %.sink22)
  %28 = tail call i32 @_FortranAioEndIoStatement(ptr %26)
  %29 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

attributes #0 = { noreturn }

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