      PROGRAM GreedyTakahashi
      IMPLICIT NONE
      integer(16) :: a,b,k
      integer(16) :: sub1
      
      read*,a,b,k
      
      if( a+b<=k )then
        print*,0,0
      else if( a<=k )then
        print*,0,b-(k-a)
      else if( a>k )then
        print*,(a-k),b
      endif
      
      
      
      
      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"

@_QQcl.c65c455c5ae9eec57c0e634d33f33f12 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2729/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i128, align 8
  %2 = alloca i128, align 8
  %3 = alloca i128, align 8
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.c65c455c5ae9eec57c0e634d33f33f12, i32 6)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 16)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 16)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 16)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i128, ptr %1, align 8, !tbaa !3
  %10 = load i128, ptr %2, align 8, !tbaa !3
  %11 = add i128 %10, %9
  %12 = load i128, ptr %3, align 8, !tbaa !3
  %.not = icmp sgt i128 %11, %12
  br i1 %.not, label %17, label %13

13:                                               ; preds = %0
  %14 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.c65c455c5ae9eec57c0e634d33f33f12, i32 9)
  %15 = call i1 @_FortranAioOutputInteger32(ptr %14, i32 0)
  %16 = call i1 @_FortranAioOutputInteger32(ptr %14, i32 0)
  br label %34

17:                                               ; preds = %0
  %.not2 = icmp sgt i128 %9, %12
  br i1 %.not2, label %26, label %18

18:                                               ; preds = %17
  %19 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.c65c455c5ae9eec57c0e634d33f33f12, i32 11)
  %20 = call i1 @_FortranAioOutputInteger32(ptr %19, i32 0)
  %21 = load i128, ptr %2, align 8, !tbaa !3
  %22 = load i128, ptr %3, align 8, !tbaa !3
  %23 = load i128, ptr %1, align 8, !tbaa !3
  %.neg = sub i128 %21, %22
  %24 = add i128 %.neg, %23
  %25 = call i1 @_FortranAioOutputInteger128(ptr %19, i128 %24)
  br label %34

26:                                               ; preds = %17
  %27 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.c65c455c5ae9eec57c0e634d33f33f12, i32 13)
  %28 = load i128, ptr %1, align 8, !tbaa !3
  %29 = load i128, ptr %3, align 8, !tbaa !3
  %30 = sub i128 %28, %29
  %31 = call i1 @_FortranAioOutputInteger128(ptr %27, i128 %30)
  %32 = load i128, ptr %2, align 8, !tbaa !3
  %33 = call i1 @_FortranAioOutputInteger128(ptr %27, i128 %32)
  br label %34

34:                                               ; preds = %13, %18, %26
  %.sink = phi ptr [ %14, %13 ], [ %19, %18 ], [ %27, %26 ]
  %35 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  ret void
}

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 ptr @_FortranAioBeginExternalListOutput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

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