#include using namespace std; int A[3000][3000]; int main() { #ifndef ONLINE_JUDGE freopen("debug", "r", stdin); #endif // ONLINE_JUDGE int n, m, x, a; cin >> n >> m >> x; for(int i=0; i> a; for(int k=0; k