      PROGRAM piyo
      IMPLICIT NONE
      INTEGER,PARAMETER :: p = 16
      integer(p) :: i,ans, l
      character(2*10**5) :: s,t
      
      read*,s
      read*,t
      
      l = len_trim( s )
      
      ans = 0
      do i = 1,l
        if( s(i:i)/=t(i:i) )then
          ans = ans + 1
        end if
      end do
      
      print'(i0)',ans
      
      
      stop
      !debugg
      
      
      
      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"

@_QFEs = internal global [200000 x i8] undef
@_QFEt = internal global [200000 x i8] undef
@_QQcl.0b3ba533611b01989382d53bb549a858 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1074/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.0b3ba533611b01989382d53bb549a858, i32 7)
  %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.0b3ba533611b01989382d53bb549a858, i32 8)
  %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.select7 = select i1 %11, i64 0, i64 %17
  %18 = icmp sgt i64 %spec.select7, 0
  br i1 %18, label %select.unfold, label %select.unfold._crit_edge

select.unfold:                                    ; preds = %15, %select.unfold
  %19 = phi i64 [ %25, %select.unfold ], [ 1, %15 ]
  %.09 = phi i128 [ %spec.select, %select.unfold ], [ 0, %15 ]
  %20 = add nsw i64 %19, -1
  %21 = getelementptr [200000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %20
  %22 = getelementptr [200000 x [1 x i8]], ptr @_QFEt, i64 0, i64 %20
  %23 = tail call i32 @_FortranACharacterCompareScalar1(ptr %21, ptr %22, i64 1, i64 1)
  %.not = icmp ne i32 %23, 0
  %24 = zext i1 %.not to i128
  %spec.select = add i128 %.09, %24
  %25 = add nuw nsw i64 %19, 1
  %exitcond.not = icmp eq i64 %19, %spec.select7
  br i1 %exitcond.not, label %select.unfold._crit_edge, label %select.unfold

select.unfold._crit_edge:                         ; preds = %select.unfold, %15
  %.0.lcssa = phi i128 [ 0, %15 ], [ %spec.select, %select.unfold ]
  %26 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.0b3ba533611b01989382d53bb549a858, i32 19)
  %27 = tail call i1 @_FortranAioOutputInteger128(ptr %26, i128 %.0.lcssa)
  %28 = tail call i32 @_FortranAioEndIoStatement(ptr %26)
  %29 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 @_FortranAioOutputInteger128(ptr, i128) 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"}
