Facility Locations

No attempts yetTime limit1sMemory limit256 MB

Problem

A company has nn clients and must serve all of them by opening kk facilities. An open facility serves any number of clients, and every client is assigned to one open facility. There are mm candidate locations for the facilities. Serving client jj from candidate location ii costs a non-negative integer cijc_{ij}, and the costs satisfy a locality condition: for any clients jj and jj' and any candidate locations ii and ii', cijcij+cij+cijc_{ij} \le c_{i'j} + c_{i'j'} + c_{ij'} holds.

The company eventually wants the cheapest way to open kk facilities. Right now it needs the answer to an earlier question. Decide whether it can open kk facilities and assign every client at a total cost of zero.

Input

The first line contains the integers mm, nn, kk, separated by spaces. (1m1001 \le m \le 100, 1n1001 \le n \le 100, 1km1 \le k \le m)

Line ii of the next mm lines contains nn non-negative integers, the jj-th of which is cijc_{ij}. (0cij100000 \le c_{ij} \le 10000)

Output

Print yes if the company can open kk facilities and assign every client at a total cost of zero. Otherwise print no.