#include <bits/stdc++.h>
using namespace std;
typedef struct op {
  long long int l;
  long long int r;
  long long int d;
} op;
op ops[100005];
long long int v[100005], inc[100005], inc2[100005], rp[100005], c, n, k, m, l,
    r, ans[100005];
int main() {
  scanf("%I64d %I64d %I64d", &n, &m, &k);
  for (long long int i = 1; i <= n; i++) {
    scanf("%I64d", &v[i]);
  }
  for (long long int i = 1; i <= m; i++) {
    scanf("%I64d %I64d %I64d", &ops[i].l, &ops[i].r, &ops[i].d);
  }
  for (long long int i = 1; i <= k; i++) {
    scanf("%I64d %I64d", &l, &r);
    inc[l] += 1;
    inc[r + 1] -= 1;
  }
  for (long long int i = 1; i <= m; i++) {
    c += inc[i];
    rp[i] += c;
  }
  for (long long int i = 1; i <= m; i++) {
    inc2[ops[i].l] += rp[i] * ops[i].d;
    inc2[ops[i].r + 1] -= rp[i] * ops[i].d;
  }
  c = 0;
  for (long long int i = 1; i <= n; i++) {
    c += inc2[i];
    ans[i] = c + v[i];
  }
  for (long long int i = 1; i <= n; i++) {
    printf("%I64d ", ans[i]);
  }
  printf("\n");
  return 0;
}
