Types: N: int, M: int, K: int
Ranges: 1 ≤ N, M ≤ 1000, 0 ≤ K ≤ NM
Addtl Info: None