implicit none
integer :: i,n
character(16),parameter :: ans = 'CODEFESTIVAL2016'
character(16) :: str

read *,str
n = 0
do i = 1, 16
   if (ans(i:i) /= str(i:i)) then
      n = n + 1
   endif
enddo

print '(i0)',n
end
; 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"

@_QFECans = internal constant [16 x i8] c"CODEFESTIVAL2016"
@_QQcl.8c39964939f02bc644396c5bb03dc2e5 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7829/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [16 x i8], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8c39964939f02bc644396c5bb03dc2e5, i32 6)
  %3 = call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull %1, i64 16)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull @_QFECans, ptr nonnull %1, i64 1, i64 1)
  %.not = icmp ne i32 %5, 0
  %6 = zext i1 %.not to i32
  %7 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 1
  %8 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 1), ptr nonnull %7, i64 1, i64 1)
  %.not.1 = icmp ne i32 %8, 0
  %9 = zext i1 %.not.1 to i32
  %spec.select.1 = add nuw nsw i32 %6, %9
  %10 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 2
  %11 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 2), ptr nonnull %10, i64 1, i64 1)
  %.not.2 = icmp ne i32 %11, 0
  %12 = zext i1 %.not.2 to i32
  %spec.select.2 = add nuw nsw i32 %spec.select.1, %12
  %13 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 3
  %14 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 3), ptr nonnull %13, i64 1, i64 1)
  %.not.3 = icmp ne i32 %14, 0
  %15 = zext i1 %.not.3 to i32
  %spec.select.3 = add nuw nsw i32 %spec.select.2, %15
  %16 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 4
  %17 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 4), ptr nonnull %16, i64 1, i64 1)
  %.not.4 = icmp ne i32 %17, 0
  %18 = zext i1 %.not.4 to i32
  %spec.select.4 = add nuw nsw i32 %spec.select.3, %18
  %19 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 5
  %20 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 5), ptr nonnull %19, i64 1, i64 1)
  %.not.5 = icmp ne i32 %20, 0
  %21 = zext i1 %.not.5 to i32
  %spec.select.5 = add nuw nsw i32 %spec.select.4, %21
  %22 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 6
  %23 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 6), ptr nonnull %22, i64 1, i64 1)
  %.not.6 = icmp ne i32 %23, 0
  %24 = zext i1 %.not.6 to i32
  %spec.select.6 = add nuw nsw i32 %spec.select.5, %24
  %25 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 7
  %26 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 7), ptr nonnull %25, i64 1, i64 1)
  %.not.7 = icmp ne i32 %26, 0
  %27 = zext i1 %.not.7 to i32
  %spec.select.7 = add nuw nsw i32 %spec.select.6, %27
  %28 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 8
  %29 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 8), ptr nonnull %28, i64 1, i64 1)
  %.not.8 = icmp ne i32 %29, 0
  %30 = zext i1 %.not.8 to i32
  %spec.select.8 = add nuw nsw i32 %spec.select.7, %30
  %31 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 9
  %32 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 9), ptr nonnull %31, i64 1, i64 1)
  %.not.9 = icmp ne i32 %32, 0
  %33 = zext i1 %.not.9 to i32
  %spec.select.9 = add nuw nsw i32 %spec.select.8, %33
  %34 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 10
  %35 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 10), ptr nonnull %34, i64 1, i64 1)
  %.not.10 = icmp ne i32 %35, 0
  %36 = zext i1 %.not.10 to i32
  %spec.select.10 = add nuw nsw i32 %spec.select.9, %36
  %37 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 11
  %38 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 11), ptr nonnull %37, i64 1, i64 1)
  %.not.11 = icmp ne i32 %38, 0
  %39 = zext i1 %.not.11 to i32
  %spec.select.11 = add nuw nsw i32 %spec.select.10, %39
  %40 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 12
  %41 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 12), ptr nonnull %40, i64 1, i64 1)
  %.not.12 = icmp ne i32 %41, 0
  %42 = zext i1 %.not.12 to i32
  %spec.select.12 = add nuw nsw i32 %spec.select.11, %42
  %43 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 13
  %44 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 13), ptr nonnull %43, i64 1, i64 1)
  %.not.13 = icmp ne i32 %44, 0
  %45 = zext i1 %.not.13 to i32
  %spec.select.13 = add nuw nsw i32 %spec.select.12, %45
  %46 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 14
  %47 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 14), ptr nonnull %46, i64 1, i64 1)
  %.not.14 = icmp ne i32 %47, 0
  %48 = zext i1 %.not.14 to i32
  %spec.select.14 = add nuw nsw i32 %spec.select.13, %48
  %49 = getelementptr inbounds [16 x [1 x i8]], ptr %1, i64 0, i64 15
  %50 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull getelementptr inbounds ([16 x i8], ptr @_QFECans, i64 0, i64 15), ptr nonnull %49, i64 1, i64 1)
  %.not.15 = icmp ne i32 %50, 0
  %51 = zext i1 %.not.15 to i32
  %spec.select.15 = add nuw nsw i32 %spec.select.14, %51
  %52 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.8c39964939f02bc644396c5bb03dc2e5, i32 14)
  %53 = call i1 @_FortranAioOutputInteger32(ptr %52, i32 %spec.select.15)
  %54 = call i32 @_FortranAioEndIoStatement(ptr %52)
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) 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}
