program sumo
 implicit none
 character(15) :: s
 integer n, m, i, k, win
 m=0
 read*, s
 k=len_trim(s)
 do i=1,k
  n=index(s(i:i),"o")
   if(n.ne.0) m=m+1
 end do
 win=m+(15-k)
 if(win.ge.8) then
  write(*,*) "YES"
 else if (win.lt.8) then
  write(*,*) "NO"
 end if
end program
; 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.6d4107363e8efb4bf3294072c0b3f57a = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4143/source.f\00"
@_QQcl.6F = linkonce constant [1 x i8] c"o"
@_QQcl.594553 = linkonce constant [3 x i8] c"YES"
@_QQcl.4E4F = linkonce constant [2 x i8] c"NO"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [15 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.6d4107363e8efb4bf3294072c0b3f57a, i32 6)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 15)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  br label %5

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

13:                                               ; preds = %5
  %14 = trunc i64 %6 to i32
  %15 = add i32 %14, 1
  %16 = select i1 %9, i32 0, i32 %15
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %13
  %18 = zext i32 %16 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.013 = phi i32 [ 0, %.lr.ph.preheader ], [ %spec.select, %.lr.ph ]
  %19 = add nsw i64 %indvars.iv, -1
  %20 = getelementptr [15 x [1 x i8]], ptr %1, i64 0, i64 %19
  %21 = call i64 @_FortranAIndex1(ptr %20, i64 1, ptr nonnull @_QQcl.6F, i64 1, i1 false)
  %22 = and i64 %21, 4294967295
  %.not = icmp ne i64 %22, 0
  %23 = zext i1 %.not to i32
  %spec.select = add i32 %.013, %23
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %18
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %13
  %.0.lcssa = phi i32 [ 0, %13 ], [ %spec.select, %.lr.ph ]
  %24 = sub i32 15, %16
  %25 = add i32 %24, %.0.lcssa
  %26 = icmp sgt i32 %25, 7
  br i1 %26, label %27, label %30

27:                                               ; preds = %._crit_edge
  %28 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6d4107363e8efb4bf3294072c0b3f57a, i32 14)
  %29 = call i1 @_FortranAioOutputAscii(ptr %28, ptr nonnull @_QQcl.594553, i64 3)
  br label %33

30:                                               ; preds = %._crit_edge
  %31 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6d4107363e8efb4bf3294072c0b3f57a, i32 16)
  %32 = call i1 @_FortranAioOutputAscii(ptr %31, ptr nonnull @_QQcl.4E4F, i64 2)
  br label %33

33:                                               ; preds = %27, %30
  %.sink = phi ptr [ %28, %27 ], [ %31, %30 ]
  %34 = 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 i64 @_FortranAIndex1(ptr, i64, ptr, i64, i1) 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}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
