#include<iostream> using namespace std; long long int graph[1001][1001], sum[1001][1001] = { 0 }; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m, q, x1, x2, y1, y2; cin >> n >> m >> q; for (int i = 1; i <= n; ++i) for (int j = 1;...