using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var h = int.Parse(line[0]); var w = int.Parse(line[1]); var sy = int.Parse(line[2]) - 1; var sx = int.Parse(line[3]) - 1; var ans = 0L; var a = new long[h * w - 1]; var p = 0; for (int i = 0; i < h; i++) { line = Console.ReadLine().Trim().Split(' '); for (int j = 0; j < w; j++) { var t = int.Parse(line[j]); if (i == sx && j == sy) ans = t; else a[p++] = t; } } getAns(h * w - 1, a, ans); } static void getAns(int n, long[] a, long ans) { Array.Sort(a); foreach (var x in a) { if (ans > x) ans += x; else { Console.WriteLine("NO"); return; } } Console.WriteLine("YES"); } }