      program ans1
      implicit none
      integer :: X,Y
      integer :: XR,YR
      read(*,*) X,Y
      XR = 0
      YR = 0
      if(X == 1) XR = 300000
      if(X == 2) XR = 200000
      if(X == 3) XR = 100000
      if(Y == 1) YR = 300000
      if(Y == 2) YR = 200000
      if(Y == 3) YR = 100000
      if(X == 1 .and. Y == 1) XR = XR + 400000
      write(*,*) XR + YR
      end program ans1
; 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.880c659aa8388505b3c1d071422d3727 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_2936/source.f\00"
@_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.880c659aa8388505b3c1d071422d3727, i32 5)
  %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 = icmp eq i32 %7, 1
  %spec.select = select i1 %8, i32 300000, i32 0
  %9 = icmp eq i32 %7, 2
  %.14 = select i1 %9, i32 200000, i32 %spec.select
  %10 = icmp eq i32 %7, 3
  %.25 = select i1 %10, i32 100000, i32 %.14
  %11 = load i32, ptr %2, align 4, !tbaa !3
  %12 = icmp eq i32 %11, 1
  %.0 = select i1 %12, i32 300000, i32 0
  %13 = icmp eq i32 %11, 2
  %.1 = select i1 %13, i32 200000, i32 %.0
  %14 = icmp eq i32 %11, 3
  %.2 = select i1 %14, i32 100000, i32 %.1
  %15 = and i1 %8, %12
  %16 = add nuw nsw i32 %.25, 400000
  %.3 = select i1 %15, i32 %16, i32 %.25
  %17 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.880c659aa8388505b3c1d071422d3727, i32 15)
  %18 = add nuw nsw i32 %.3, %.2
  %19 = call i1 @_FortranAioOutputInteger32(ptr %17, i32 %18)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %17)
  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

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