program flip
  implicit none
  integer :: n, m, k, i, j
  read(*,*) n, m, k
  do i = 0, n
    j = 0
    if (n-2*i.ne.0) j = (k-i*m)/(n-2*i)
    if ((j.ge.0).and.(j.le.m).and.(j*(n-i)+(m-j)*i.eq.k)) then
      write(*,'(a)') "Yes"
      stop
    end if
  end do
  write(*,'(a)') "No"
  stop
end program flip
; 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.822917caaeb9e68312f3f4c7dc106f35 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6873/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_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.822917caaeb9e68312f3f4c7dc106f35, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %3, i32 4)
  %6 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %2, i32 4)
  %7 = call i1 @_FortranAioInputInteger(ptr %4, ptr nonnull %1, i32 4)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %4)
  %9 = load i32, ptr %3, align 4, !tbaa !3
  %10 = icmp ult i32 %9, 2147483647
  br i1 %10, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0
  %11 = add nuw nsw i32 %9, 1
  %12 = load i32, ptr %1, align 4
  %13 = load i32, ptr %2, align 4
  br label %14

14:                                               ; preds = %.lr.ph, %37
  %.0711 = phi i32 [ 0, %.lr.ph ], [ %39, %37 ]
  %.0810 = phi i32 [ %11, %.lr.ph ], [ %38, %37 ]
  %15 = shl nuw i32 %.0711, 1
  %.not = icmp eq i32 %9, %15
  br i1 %.not, label %21, label %16

16:                                               ; preds = %14
  %17 = sub i32 %9, %15
  %18 = mul i32 %13, %.0711
  %19 = sub i32 %12, %18
  %20 = sdiv i32 %19, %17
  br label %21

21:                                               ; preds = %16, %14
  %.0 = phi i32 [ %20, %16 ], [ 0, %14 ]
  %22 = icmp sgt i32 %.0, -1
  %23 = icmp sge i32 %13, %.0
  %24 = and i1 %22, %23
  %25 = sub nuw nsw i32 %9, %.0711
  %26 = mul i32 %.0, %25
  %27 = sub i32 %13, %.0
  %28 = mul i32 %27, %.0711
  %29 = add i32 %28, %26
  %30 = icmp eq i32 %29, %12
  %31 = and i1 %24, %30
  br i1 %31, label %32, label %37

32:                                               ; preds = %21
  %33 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.822917caaeb9e68312f3f4c7dc106f35, i32 9)
  %34 = call i1 @_FortranAioOutputAscii(ptr %33, ptr nonnull @_QQcl.596573, i64 3)
  %35 = call i32 @_FortranAioEndIoStatement(ptr %33)
  %36 = call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

37:                                               ; preds = %21
  %38 = add nsw i32 %.0810, -1
  %39 = add nuw nsw i32 %.0711, 1
  %40 = icmp sgt i32 %.0810, 1
  br i1 %40, label %14, label %._crit_edge

._crit_edge:                                      ; preds = %37, %0
  %41 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.822917caaeb9e68312f3f4c7dc106f35, i32 13)
  %42 = call i1 @_FortranAioOutputAscii(ptr %41, ptr nonnull @_QQcl.4E6F, i64 2)
  %43 = call i32 @_FortranAioEndIoStatement(ptr %41)
  %44 = 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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

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