#include <bits/stdc++.h>
using namespace std;
const int SIZE = 100009;
struct OP {
  int l, r;
  long long int d;
} o1[SIZE], o2[SIZE];
int N, M, K;
long long alc[SIZE];
void f(long long out[], OP ss[], int n, int m) {
  memset(alc, 0, sizeof(alc));
  for (int i = 0; i < n; i++) {
    alc[ss[i].l] += ss[i].d;
    alc[ss[i].r] -= ss[i].d;
  }
  long long int sum = 0;
  for (int i = 0; i < m; i++) {
    sum += alc[i];
    out[i] = sum;
  }
}
long long int buf[SIZE];
int as[SIZE];
int main() {
  scanf("%d%d%d", &N, &M, &K);
  for (int i = 0; i < N; i++) scanf("%d", as + i);
  for (int i = 0; i < M; i++) {
    scanf("%d%d%d", &o1[i].l, &o1[i].r, &o1[i].d);
    o1[i].l--;
  }
  for (int i = 0; i < K; i++) {
    scanf("%d%d", &o2[i].l, &o2[i].r);
    o2[i].l--;
    o2[i].d = 1;
  }
  f(buf, o2, K, M);
  for (int i = 0; i < M; i++) o1[i].d *= buf[i];
  f(buf, o1, M, N);
  for (int i = 0; i < N; i++) {
    if (i) printf(" ");
    printf("%I64d", buf[i] + as[i]);
  }
  return 0;
}
