시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB311100.000%

문제

The HDWBP Inc. has n clients and needs to service these clients by opening k facilities. Each opened facility can serve any number of clients and each client must be served by an open facility. There are m potential locations for these k facilities. The cost of serving client j at potential location i is a non-negative integer cij . These costs satisfy a locality property: for two clients j and j' and two facilities i and i', we have cij ≤ ci'j + ci'j' + cij'. Given the costs, the CEO of HDWBP Inc. ultimately wants to know the cheapest way to open k facilities and assign clients to these open facilities. For now, he needs your help to determine if it is possible to do this task without any cost (i.e. with cost zero).

입력

The input consists of a single test case. The first line contains three integers m, n, k where 1 ≤ m ≤ 100, 1 ≤ n ≤ 100 and 1 ≤ k ≤ m. Each of the next m lines contains n non-negative integers where the jth integer in the ith line is cij ≤ 10 000.

출력

Display yes if it is possible to do the task with cost zero; otherwise, display no.

예제 입력 1

3 2 2
0 2
1 1
2 0

예제 출력 1

yes

예제 입력 2

3 3 2
0 2 2
1 1 1
2 2 0

예제 출력 2

no