program main
	implicit none
    integer::a,i,b
    character::s
    read(*,*) a
    s='f'
    do i=1,3
    	b=mod(a,10)
        a=a/10
        if(b==7)then
        	s='t'
        end if
    end do
    
    if (s=='t')then
    	write(*,*) 'Yes'
    else
    	write(*,*) 'No'
    end if
    stop
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"

@_QQcl.a77ae04ca54955f766d64de47681471b = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1762/source.f\00"
@_QQcl.66 = linkonce local_unnamed_addr constant [1 x i8] c"f"
@_QQcl.74 = linkonce constant [1 x i8] c"t"
@_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

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [1 x i8], align 1
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.a77ae04ca54955f766d64de47681471b, i32 5)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %5 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %.unpack = load i8, ptr @_QQcl.66, align 1, !tbaa !3
  %.promoted = load i32, ptr %1, align 4, !tbaa !3
  %.unpack4 = load i8, ptr @_QQcl.74, align 1
  %6 = srem i32 %.promoted, 10
  %7 = sdiv i32 %.promoted, 10
  %8 = icmp eq i32 %6, 7
  %9 = srem i32 %7, 10
  %10 = sdiv i32 %.promoted, 100
  %11 = icmp eq i32 %9, 7
  %12 = srem i32 %10, 10
  %13 = sdiv i32 %.promoted, 1000
  %14 = icmp eq i32 %12, 7
  %15 = select i1 %14, i1 true, i1 %11
  %16 = select i1 %15, i1 true, i1 %8
  %spec.select.2 = select i1 %16, i8 %.unpack4, i8 %.unpack
  store i32 %13, ptr %1, align 4, !tbaa !3
  store i8 %spec.select.2, ptr %2, align 1, !tbaa !3
  %17 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %2, ptr nonnull @_QQcl.74, i64 1, i64 1)
  %18 = icmp eq i32 %17, 0
  %. = select i1 %18, i32 16, i32 18
  %.11 = select i1 %18, i64 3, i64 2
  %_QQcl.596573._QQcl.4E6F = select i1 %18, ptr @_QQcl.596573, ptr @_QQcl.4E6F
  %19 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.a77ae04ca54955f766d64de47681471b, i32 %.)
  %20 = call i1 @_FortranAioOutputAscii(ptr %19, ptr nonnull %_QQcl.596573._QQcl.4E6F, i64 %.11)
  %21 = call i32 @_FortranAioEndIoStatement(ptr %19)
  %22 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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