#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, m, k;
  long long int l[100100] = {0}, r[100100] = {0}, d[100100] = {0},
                diff[100100] = {0}, count[100100] = {0}, a[100100] = {0};
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  };
  for (int i = 1; i <= m; i++) cin >> l[i] >> r[i] >> d[i];
  for (int i = 0; i < k; i++) {
    long long int x, y;
    cin >> x >> y;
    count[x]++;
    count[y + 1]--;
  }
  for (int i = 1; i <= m; i++) count[i] += count[i - 1];
  for (int i = 1; i <= m; i++) {
    diff[l[i]] += count[i] * d[i];
    diff[r[i] + 1] -= count[i] * d[i];
  }
  for (int i = 1; i <= n; i++) {
    a[i] += (diff[i] += diff[i - 1]);
  }
  for (int i = 1; i <= n; i++) {
    cout << a[i] << ' ';
  }
  cout << endl;
  ;
  return 0;
}
