#include <bits/stdc++.h>
using namespace std;
const long long C = 202020, INF = 1e19, inf = -1e19, mod = 1e9 + 7;
const long double eps = 1e-7, pi = acos(-1), E = 2.71828182845904523536;
long long Q = 1, i, j, k, n, m, a[C], b, c[C], d[C], l[C], r[C], x, y, mid, ans,
          sum;
bool f;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  while (Q--) {
    cin >> n >> m >> k;
    for (i = 0; i < n; i++) {
      cin >> a[i];
    }
    for (i = 0; i < m; i++) {
      cin >> l[i] >> r[i] >> d[i];
    }
    for (i = 0; i < k; i++) {
      cin >> x >> y;
      c[x - 1]++;
      c[y]--;
    }
    d[0] *= c[0];
    for (i = 1; i < m; i++) {
      c[i] += c[i - 1];
      d[i] *= c[i];
    }
    memset(c, 0x00, sizeof(c));
    for (i = 0; i < m; i++) {
      c[l[i] - 1] += d[i];
      c[r[i]] -= d[i];
    }
    a[0] += c[0];
    for (i = 1; i < n; i++) {
      c[i] += c[i - 1];
      a[i] += c[i];
    }
    for (i = 0; i < n; i++) {
      cout << a[i] << " ";
    }
  }
  return 0;
}
