# -*- coding: utf-8 -*- N, V, Ox, Oy = map(int, raw_input().split()) assert 2 <= N <= 200 assert 1 <= V <= 500 assert (Ox == 0 and Oy == 0) or (1 <= Ox <= N and 1 <= Oy <= N) for _ in xrange(N): C = map(int, raw_input().split()) assert len(C) == N for i in C: assert 0 <= i <= 9