program abc37
 implicit none
 character(len=2*10**5)::T,S
 integer::c=0,L,i
 read(*,*)S
 read(*,*)T
 L=len_trim(S)
 do i=1,L
  if(S(i:i)/=T(i:i))then
   c=c+1
  end if
 end do
 print'(i0)',c
end program abc37
; 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"

@_QFEc = internal unnamed_addr global i32 0
@_QFEs = internal global [200000 x i8] undef
@_QFEt = internal global [200000 x i8] undef
@_QQcl.426d22874f48056b5606b7372bf4038c = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1059/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 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.426d22874f48056b5606b7372bf4038c, i32 5)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 200000)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.426d22874f48056b5606b7372bf4038c, i32 6)
  %5 = tail call i1 @_FortranAioInputAscii(ptr %4, ptr nonnull @_QFEt, i64 200000)
  %6 = tail call i32 @_FortranAioEndIoStatement(ptr %4)
  br label %7

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

15:                                               ; preds = %7
  %16 = shl i64 %8, 32
  %sext = add i64 %16, 4294967296
  %17 = ashr exact i64 %sext, 32
  %spec.select = select i1 %11, i64 0, i64 %17
  %18 = icmp sgt i64 %spec.select, 0
  br i1 %18, label %.lr.ph, label %select.unfold._crit_edge

.lr.ph:                                           ; preds = %15, %select.unfold
  %indvars.iv = phi i64 [ %indvars.iv.next, %select.unfold ], [ 1, %15 ]
  %19 = add nsw i64 %indvars.iv, -1
  %20 = getelementptr [200000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %19
  %21 = getelementptr [200000 x [1 x i8]], ptr @_QFEt, i64 0, i64 %19
  %22 = tail call i32 @_FortranACharacterCompareScalar1(ptr %20, ptr %21, i64 1, i64 1)
  %.not = icmp eq i32 %22, 0
  br i1 %.not, label %select.unfold, label %23

23:                                               ; preds = %.lr.ph
  %24 = load i32, ptr @_QFEc, align 4, !tbaa !3
  %25 = add i32 %24, 1
  store i32 %25, ptr @_QFEc, align 4, !tbaa !3
  br label %select.unfold

select.unfold:                                    ; preds = %23, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %spec.select
  br i1 %exitcond.not, label %select.unfold._crit_edge, label %.lr.ph

select.unfold._crit_edge:                         ; preds = %select.unfold, %15
  %26 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.426d22874f48056b5606b7372bf4038c, i32 13)
  %27 = load i32, ptr @_QFEc, align 4, !tbaa !3
  %28 = tail call i1 @_FortranAioOutputInteger32(ptr %26, i32 %27)
  %29 = tail call i32 @_FortranAioEndIoStatement(ptr %26)
  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}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
