program ABC_079_A_GoodInteger
   implicit none
   character(4) N
   read(*, *) N
   if((N(2:2) == N(1:1) .and. N(2:2) == N(3:3)) .or. (N(3:3) == N(2:2) .and. N(3:3) == N(4:4))) then
       write(*, *) 'Yes'
   else
       write(*, *) 'No'
   end if
end program ABC_079_A_GoodInteger
; 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.b60792a068e1c3a8a984a0dde2765445 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6680/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 = alloca [4 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.b60792a068e1c3a8a984a0dde2765445, i32 4)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = getelementptr inbounds [4 x [1 x i8]], ptr %1, i64 0, i64 1
  %6 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %5, ptr nonnull %1, i64 1, i64 1)
  %7 = getelementptr inbounds [4 x [1 x i8]], ptr %1, i64 0, i64 2
  %8 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %5, ptr nonnull %7, i64 1, i64 1)
  %9 = or i32 %8, %6
  %10 = icmp eq i32 %9, 0
  %11 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %7, ptr nonnull %5, i64 1, i64 1)
  %12 = getelementptr inbounds [4 x [1 x i8]], ptr %1, i64 0, i64 3
  %13 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %7, ptr nonnull %12, i64 1, i64 1)
  %14 = or i32 %13, %11
  %15 = icmp eq i32 %14, 0
  %16 = or i1 %10, %15
  br i1 %16, label %17, label %20

17:                                               ; preds = %0
  %18 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b60792a068e1c3a8a984a0dde2765445, i32 6)
  %19 = call i1 @_FortranAioOutputAscii(ptr %18, ptr nonnull @_QQcl.596573, i64 3)
  br label %23

20:                                               ; preds = %0
  %21 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b60792a068e1c3a8a984a0dde2765445, i32 8)
  %22 = call i1 @_FortranAioOutputAscii(ptr %21, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %23

23:                                               ; preds = %17, %20
  %.sink = phi ptr [ %18, %17 ], [ %21, %20 ]
  %24 = 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}
