program tax_increase
    integer a, b, i, ansa, ansb
    read *, a, b
    do i = 1, 1009
        ansa = int(i * 0.08)
        ansb = int(i * 0.1)
        if(ansa .eq. a .and. ansb .eq. b)exit
    end do
    if(i .le. 1009)then
        print *, i
    else
        print *, '-1'
    end if
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.b8ff65e9697039d7c77c40b88b3eb2ad = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2201/source.f\00"
@_QQcl.2D31 = linkonce constant [2 x i8] c"-1"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.b8ff65e9697039d7c77c40b88b3eb2ad, i32 3)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i32, ptr %1, align 4, !tbaa !3
  %8 = load i32, ptr %2, align 4, !tbaa !3
  br label %9

9:                                                ; preds = %29, %0
  %.011 = phi i32 [ 1, %0 ], [ %30, %29 ]
  %10 = sitofp i32 %.011 to float
  %11 = fmul contract float %10, 0x3FB47AE140000000
  %12 = fptosi float %11 to i32
  %13 = fmul contract float %10, 0x3FB99999A0000000
  %14 = fptosi float %13 to i32
  %15 = icmp eq i32 %7, %12
  %16 = icmp eq i32 %8, %14
  %17 = and i1 %15, %16
  br i1 %17, label %31, label %18

18:                                               ; preds = %9
  %19 = add nuw nsw i32 %.011, 1
  %exitcond.not = icmp eq i32 %19, 1010
  br i1 %exitcond.not, label %.thread, label %20

20:                                               ; preds = %18
  %21 = sitofp i32 %19 to float
  %22 = fmul contract float %21, 0x3FB47AE140000000
  %23 = fptosi float %22 to i32
  %24 = fmul contract float %21, 0x3FB99999A0000000
  %25 = fptosi float %24 to i32
  %26 = icmp eq i32 %7, %23
  %27 = icmp eq i32 %8, %25
  %28 = and i1 %26, %27
  br i1 %28, label %31, label %29

29:                                               ; preds = %20
  %30 = add nuw nsw i32 %.011, 2
  br label %9

31:                                               ; preds = %20, %9
  %.011.lcssa = phi i32 [ %.011, %9 ], [ %19, %20 ]
  %32 = icmp ult i32 %.011.lcssa, 1010
  br i1 %32, label %33, label %.thread

33:                                               ; preds = %31
  %34 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b8ff65e9697039d7c77c40b88b3eb2ad, i32 10)
  %35 = call i1 @_FortranAioOutputInteger32(ptr %34, i32 %.011.lcssa)
  br label %38

.thread:                                          ; preds = %18, %31
  %36 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.b8ff65e9697039d7c77c40b88b3eb2ad, i32 12)
  %37 = call i1 @_FortranAioOutputAscii(ptr %36, ptr nonnull @_QQcl.2D31, i64 2)
  br label %38

38:                                               ; preds = %33, %.thread
  %.sink = phi ptr [ %34, %33 ], [ %36, %.thread ]
  %39 = 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 @_FortranAioOutputAscii(ptr, ptr, i64) 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"}
