Currently, there are n galactic governments in the k-dimensional cubic universe. The universe is a cube with two opposite vertices (0,…,0) and (C,…,C) and sides parallel to coordinate axes. Formally, the set of points in the universe is U=(x_1,…,x_k)∈Rk:0≤x_i≤C.
Each galactic government claims that its territory is a parallelepiped with sides parallel to coordinate axes. The i-th government claims a parallelepiped with two opposite vertices (a_i,1,…,a_i,k) and (b_i,1,…,b_i,k) such that a_i,j<b_i,j for all j. Formally, the i-th government claims the set of points G_i=(x_1,…,x_k)∈U:a_i,j≤x_j≤b_i,j.
Note that some pieces of territory can be claimed by multiple governments.
Rick tries to find a point which is not claimed by any of the galactic governments. He has noticed that a_i,j is an integer for all i from 1 to n and all j from 1 to k. Rick knows that it implies that an unclaimed point exists if and only if there exists an unclaimed point (α_1+21,α_2+21,…,α_k+21) where α_i are all integers. Rick likes integers, so he asks you to find α_1,…,α_k such that (α_1+21,α_2+21,…,α_k+21) is a point in the universe and it does not belong in any of the G_1,…,G_n. If there are multiple such points, Rick wants to find the lexicographically smallest one.
Point (β_1+21,…,β_k+21) is lexicographically smaller than (γ_1+21,…,γ_k+21) if there exists such j (1≤j≤k) such that for all i<j we have β_i=γ_i, and β_j<γ_j.
The first line contains three integers n, k, and C (1≤n≤18, 1≤k≤10, 1≤C≤1000). The i-th of the next n lines contains 2k integers: a_i,1,…,a_i,k,;b_i,1,…,b_i,k (0≤a_i,j<b_i,j≤C for every j from 1 to k).
Print "NO" if all points in the universe are claimed by galactic governments. Otherwise, print "YES" on the first line, and on the second line, print k integers α_1,…,α_k such that (α_1+21,α_2+21,…,α_k+21) is a point in the universe and it does not belong in any of the G_1,…,G_n. If there are multiple solutions, print the lexicographically smallest one.