program ABC154A
    implicit none
    character(10)::S,T,U
    integer(8)::A,B
    read(5,*)S,T,A,B,U
    if(U(1:len_trim(U))==S(1:len_trim(S)))then
        print'(i0,1x,i0)',A-1,B
    else
        print'(i0,1x,i0)',A,B-1
    end if
end program ABC154A
; 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.122a6116acea11032fc47edd8da82f13 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2424/source.f\00"
@_QQcl.2869302C31782C693029 = linkonce constant [10 x i8] c"(i0,1x,i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca [10 x i8], align 1
  %4 = alloca [10 x i8], align 1
  %5 = alloca [10 x i8], align 1
  %6 = tail call ptr @_FortranAioBeginExternalListInput(i32 5, ptr nonnull @_QQcl.122a6116acea11032fc47edd8da82f13, i32 5)
  %7 = call i1 @_FortranAioInputAscii(ptr %6, ptr nonnull %3, i64 10)
  %8 = call i1 @_FortranAioInputAscii(ptr %6, ptr nonnull %4, i64 10)
  %9 = call i1 @_FortranAioInputInteger(ptr %6, ptr nonnull %1, i32 8)
  %10 = call i1 @_FortranAioInputInteger(ptr %6, ptr nonnull %2, i32 8)
  %11 = call i1 @_FortranAioInputAscii(ptr %6, ptr nonnull %5, i64 10)
  %12 = call i32 @_FortranAioEndIoStatement(ptr %6)
  br label %13

13:                                               ; preds = %0, %13
  %14 = phi i64 [ 9, %0 ], [ %18, %13 ]
  %15 = getelementptr [10 x [1 x i8]], ptr %5, i64 0, i64 %14
  %16 = load i8, ptr %15, align 1, !tbaa !3
  %17 = icmp eq i8 %16, 32
  %18 = add nsw i64 %14, -1
  %19 = icmp ne i64 %14, 0
  %20 = and i1 %17, %19
  br i1 %20, label %13, label %21

21:                                               ; preds = %13
  %22 = shl i64 %14, 32
  %sext = add i64 %22, 4294967296
  %23 = ashr exact i64 %sext, 32
  %24 = call i64 @llvm.smax.i64(i64 %23, i64 0)
  br label %25

25:                                               ; preds = %21, %25
  %26 = phi i64 [ 9, %21 ], [ %30, %25 ]
  %27 = getelementptr [10 x [1 x i8]], ptr %3, i64 0, i64 %26
  %28 = load i8, ptr %27, align 1, !tbaa !3
  %29 = icmp eq i8 %28, 32
  %30 = add nsw i64 %26, -1
  %31 = icmp ne i64 %26, 0
  %32 = and i1 %29, %31
  br i1 %32, label %25, label %33

33:                                               ; preds = %25
  %34 = select i1 %17, i64 0, i64 %24
  %35 = shl i64 %26, 32
  %sext2 = add i64 %35, 4294967296
  %36 = ashr exact i64 %sext2, 32
  %37 = call i64 @llvm.smax.i64(i64 %36, i64 0)
  %38 = select i1 %29, i64 0, i64 %37
  %39 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %5, ptr nonnull %3, i64 %34, i64 %38)
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %48

41:                                               ; preds = %33
  %42 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.2869302C31782C693029, i64 10, ptr null, i32 -1, ptr nonnull @_QQcl.122a6116acea11032fc47edd8da82f13, i32 7)
  %43 = load i64, ptr %1, align 8, !tbaa !3
  %44 = add i64 %43, -1
  %45 = call i1 @_FortranAioOutputInteger64(ptr %42, i64 %44)
  %46 = load i64, ptr %2, align 8, !tbaa !3
  %47 = call i1 @_FortranAioOutputInteger64(ptr %42, i64 %46)
  br label %55

48:                                               ; preds = %33
  %49 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.2869302C31782C693029, i64 10, ptr null, i32 -1, ptr nonnull @_QQcl.122a6116acea11032fc47edd8da82f13, i32 9)
  %50 = load i64, ptr %1, align 8, !tbaa !3
  %51 = call i1 @_FortranAioOutputInteger64(ptr %49, i64 %50)
  %52 = load i64, ptr %2, align 8, !tbaa !3
  %53 = add i64 %52, -1
  %54 = call i1 @_FortranAioOutputInteger64(ptr %49, i64 %53)
  br label %55

55:                                               ; preds = %41, %48
  %.sink = phi ptr [ %42, %41 ], [ %49, %48 ]
  %56 = 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 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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger64(ptr, i64) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

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