A matrix of size (m, n) is given, along with paint brush of size (x, y). The matrix contains few blocked cells, at which paint brush can't be applied. The task is to check if it is possible to pain submatrix (ab, b) within (m, n) or not, ensuring the constraints.