program polygon
  implicit none
  integer :: n, l(10) = 0
  read(*,*) n
  read(*,*) l(1:n)
  if (2*maxval(l) < sum(l)) then
    write(*,'(a)') "Yes"
  else
    write(*,'(a)') "No"
  end if
end program polygon
; 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"

@_QFEl = internal global [10 x i32] zeroinitializer
@_QQcl.d1c5f9c326b765f294d5a9da3f9ce11a = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5000/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_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 {
.lr.ph.i:
  %0 = alloca { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, align 8
  %1 = alloca i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.d1c5f9c326b765f294d5a9da3f9ce11a, i32 4)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.d1c5f9c326b765f294d5a9da3f9ce11a, i32 5)
  %6 = load i32, ptr %1, align 4, !tbaa !3
  %7 = call i32 @llvm.smax.i32(i32 %6, i32 0)
  %8 = zext i32 %7 to i64
  store ptr @_QFEl, ptr %0, align 8, !tbaa !7
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 1
  store i64 4, ptr %.fca.1.gep, align 8, !tbaa !7
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !7
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 3
  store i8 1, ptr %.fca.3.gep, align 4, !tbaa !7
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 4
  store i8 9, ptr %.fca.4.gep, align 1, !tbaa !7
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep, align 2, !tbaa !7
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !7
  %.fca.7.0.0.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 0
  store i64 1, ptr %.fca.7.0.0.gep, align 8, !tbaa !7
  %.fca.7.0.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 1
  store i64 %8, ptr %.fca.7.0.1.gep, align 8, !tbaa !7
  %.fca.7.0.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i64 0, i32 7, i64 0, i64 2
  store i64 4, ptr %.fca.7.0.2.gep, align 8, !tbaa !7
  %9 = call i1 @_FortranAioInputDescriptor(ptr %5, ptr nonnull %0)
  %10 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %11 = load i32, ptr @_QFEl, align 16, !tbaa !3
  %12 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 1), align 4, !tbaa !3
  %13 = call i32 @llvm.smax.i32(i32 %12, i32 %11)
  %14 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 2), align 8, !tbaa !3
  %15 = call i32 @llvm.smax.i32(i32 %14, i32 %13)
  %16 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 3), align 4, !tbaa !3
  %17 = call i32 @llvm.smax.i32(i32 %16, i32 %15)
  %18 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 4), align 16, !tbaa !3
  %19 = call i32 @llvm.smax.i32(i32 %18, i32 %17)
  %20 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 5), align 4, !tbaa !3
  %21 = call i32 @llvm.smax.i32(i32 %20, i32 %19)
  %22 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 6), align 8, !tbaa !3
  %23 = call i32 @llvm.smax.i32(i32 %22, i32 %21)
  %24 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 7), align 4, !tbaa !3
  %25 = call i32 @llvm.smax.i32(i32 %24, i32 %23)
  %26 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 8), align 16, !tbaa !3
  %27 = call i32 @llvm.smax.i32(i32 %26, i32 %25)
  %28 = load i32, ptr getelementptr inbounds ([10 x i32], ptr @_QFEl, i64 0, i64 9), align 4, !tbaa !3
  %29 = call i32 @llvm.smax.i32(i32 %28, i32 %27)
  %30 = add i32 %12, %11
  %31 = add i32 %14, %30
  %32 = add i32 %16, %31
  %33 = add i32 %18, %32
  %34 = add i32 %20, %33
  %35 = add i32 %22, %34
  %36 = add i32 %24, %35
  %37 = add i32 %26, %36
  %38 = add i32 %28, %37
  %39 = shl i32 %29, 1
  %40 = icmp slt i32 %39, %38
  br i1 %40, label %41, label %44

41:                                               ; preds = %.lr.ph.i
  %42 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.d1c5f9c326b765f294d5a9da3f9ce11a, i32 7)
  %43 = call i1 @_FortranAioOutputAscii(ptr %42, ptr nonnull @_QQcl.596573, i64 3)
  br label %47

44:                                               ; preds = %.lr.ph.i
  %45 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.d1c5f9c326b765f294d5a9da3f9ce11a, i32 9)
  %46 = call i1 @_FortranAioOutputAscii(ptr %45, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %47

47:                                               ; preds = %41, %44
  %.sink = phi ptr [ %42, %41 ], [ %45, %44 ]
  %48 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare i1 @_FortranAioInputDescriptor(ptr, ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) local_unnamed_addr

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

attributes #0 = { mustprogress 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"}
!7 = !{!8, !8, i64 0}
!8 = !{!"descriptor member", !5, i64 0}
