#include <bits/stdc++.h>
using namespace std;
int l, m, t, n, p;
long long T[100011], ans, a1[100011], a2[100011], a3[100011], b[100011];
int main() {
  int i, j, k, a[100011];
  scanf("%d%d%d", &n, &m, &l);
  for (i = 1; i <= n; ++i) scanf("%d", &a[i]);
  for (i = 1; i <= m; ++i) scanf("%d%d%d", &a1[i], &a2[i], &a3[i]);
  for (i = 1; i <= l; ++i) scanf("%d%d", &k, &t), ++b[k], --b[t + 1];
  for (i = 1; i <= m; ++i) b[i] += b[i - 1], a3[i] *= b[i];
  memset(b, 0, sizeof(b));
  for (i = 1; i <= m; ++i) b[a1[i]] += a3[i], b[a2[i] + 1] -= a3[i];
  for (i = 1; i <= n; ++i) b[i] += b[i - 1];
  for (i = 1; i < n; ++i) printf("%I64d ", a[i] + b[i]);
  printf("%I64d\n", a[n] + b[n]);
  return 0;
}
