#include <bits/stdc++.h>
using namespace std;
long long mul[100005];
long long a[100005];
long long mul1[100005];
long long op[100005][3];
int main() {
  long long n, m, k, i, j, x, y;
  cin >> n >> m >> k;
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (i = 1; i <= m; i++) {
    scanf("%d", &op[i][0]);
    scanf("%d", &op[i][1]);
    scanf("%d", &op[i][2]);
  }
  for (i = 0; i < k; i++) {
    scanf("%d", &x), scanf("%d", &y);
    mul[x] += 1;
    mul[y + 1] -= 1;
  }
  long long cnt = 0;
  cnt += mul[1];
  for (i = 1; i <= m; i++) {
    mul[i] += mul[i - 1];
    mul1[op[i][0]] += op[i][2] * mul[i];
    mul1[op[i][1] + 1] -= op[i][2] * mul[i];
  }
  cnt = 0;
  for (i = 1; i <= n; i++) {
    cnt += mul1[i];
    a[i] += cnt;
  }
  for (i = 1; i <= n; i++) cout << a[i] << " ";
  cout << endl;
  return 0;
}
