program answer
  implicit none
  integer :: N, X, T
  read(*,*) N, X, T
  if(mod(N,x)==0) then
     write(*,*) N/x*T
  else
     write(*,*) (int(N/x)+1)*T
  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.8c74cf99a253a1e4df65b67d677556f7 = linkonce constant [72 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_728/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 = alloca i32, align 4
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.8c74cf99a253a1e4df65b67d677556f7, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 4)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i32, ptr %1, align 4, !tbaa !3
  %10 = load i32, ptr %3, align 4, !tbaa !3
  %11 = srem i32 %9, %10
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %19

13:                                               ; preds = %0
  %14 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8c74cf99a253a1e4df65b67d677556f7, i32 6)
  %15 = load i32, ptr %1, align 4, !tbaa !3
  %16 = load i32, ptr %3, align 4, !tbaa !3
  %17 = sdiv i32 %15, %16
  %18 = load i32, ptr %2, align 4, !tbaa !3
  br label %26

19:                                               ; preds = %0
  %20 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.8c74cf99a253a1e4df65b67d677556f7, i32 8)
  %21 = load i32, ptr %1, align 4, !tbaa !3
  %22 = load i32, ptr %3, align 4, !tbaa !3
  %23 = sdiv i32 %21, %22
  %24 = add i32 %23, 1
  %25 = load i32, ptr %2, align 4, !tbaa !3
  br label %26

26:                                               ; preds = %13, %19
  %.sink4 = phi i32 [ %17, %13 ], [ %25, %19 ]
  %.sink3 = phi i32 [ %18, %13 ], [ %24, %19 ]
  %.sink1 = phi ptr [ %14, %13 ], [ %20, %19 ]
  %27 = mul i32 %.sink3, %.sink4
  %28 = call i1 @_FortranAioOutputInteger32(ptr %.sink1, i32 %27)
  %29 = call i32 @_FortranAioEndIoStatement(ptr %.sink1)
  %30 = 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"}
