program answer
  implicit none

  integer ::D, N

  read(*,*) D, N

  if(D==0) then
     if(N==100) then
        write(*,*) 101
        stop
     else
        write(*,*) N
        stop
     end if
  else if(D==1) then
     if(N==100) then
        write(*,*) 10100
        stop
     else
        write(*,*) 100*N
        stop
     end if
  else
     if(N==100) then
        write(*,*) 1010000
     else
        write(*,*) 10000*N
     end if
   end if

  stop
 end program answer

; 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.6f53d8ec9043efebc5e93894d7a9f31c = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5871/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 6)
  %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
  switch i32 %7, label %37 [
    i32 0, label %8
    i32 1, label %22
  ]

8:                                                ; preds = %0
  %9 = load i32, ptr %2, align 4, !tbaa !3
  %10 = icmp eq i32 %9, 100
  br i1 %10, label %11, label %16

11:                                               ; preds = %8
  %12 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 10)
  %13 = call i1 @_FortranAioOutputInteger32(ptr %12, i32 101)
  %14 = call i32 @_FortranAioEndIoStatement(ptr %12)
  %15 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

16:                                               ; preds = %8
  %17 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 13)
  %18 = load i32, ptr %2, align 4, !tbaa !3
  %19 = call i1 @_FortranAioOutputInteger32(ptr %17, i32 %18)
  %20 = call i32 @_FortranAioEndIoStatement(ptr %17)
  %21 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

22:                                               ; preds = %0
  %23 = load i32, ptr %2, align 4, !tbaa !3
  %24 = icmp eq i32 %23, 100
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 18)
  %27 = call i1 @_FortranAioOutputInteger32(ptr %26, i32 10100)
  %28 = call i32 @_FortranAioEndIoStatement(ptr %26)
  %29 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

30:                                               ; preds = %22
  %31 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 21)
  %32 = load i32, ptr %2, align 4, !tbaa !3
  %33 = mul i32 %32, 100
  %34 = call i1 @_FortranAioOutputInteger32(ptr %31, i32 %33)
  %35 = call i32 @_FortranAioEndIoStatement(ptr %31)
  %36 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

37:                                               ; preds = %0
  %38 = load i32, ptr %2, align 4, !tbaa !3
  %39 = icmp eq i32 %38, 100
  br i1 %39, label %40, label %42

40:                                               ; preds = %37
  %41 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 26)
  br label %46

42:                                               ; preds = %37
  %43 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.6f53d8ec9043efebc5e93894d7a9f31c, i32 28)
  %44 = load i32, ptr %2, align 4, !tbaa !3
  %45 = mul i32 %44, 10000
  br label %46

46:                                               ; preds = %40, %42
  %.sink2 = phi i32 [ 1010000, %40 ], [ %45, %42 ]
  %.sink1 = phi ptr [ %41, %40 ], [ %43, %42 ]
  %47 = call i1 @_FortranAioOutputInteger32(ptr %.sink1, i32 %.sink2)
  %48 = call i32 @_FortranAioEndIoStatement(ptr %.sink1)
  %49 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 {} @_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"}
