#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n, m, k;
  int i;
  cin >> n >> m >> k;
  vector<long long> A(n + 1, 0);
  vector<long long> B(n, 0);
  for (i = 0; i < n; i++) cin >> B[i];
  vector<int> l(m, 0);
  vector<int> r(m, 0);
  vector<int> d(m, 0);
  vector<long long> M(m + 1, 0);
  for (i = 0; i < m; i++) cin >> l[i] >> r[i] >> d[i];
  for (i = 0; i < k; i++) {
    int x, y;
    cin >> x >> y;
    x--;
    M[x] += 1;
    M[y] -= 1;
  }
  long long count = 0;
  for (i = 0; i < m; i++) {
    count += M[i];
    A[l[i] - 1] += count * d[i];
    A[r[i]] -= count * d[i];
  }
  long long num = 0;
  for (i = 0; i < n; i++) {
    num += A[i];
    cout << num + B[i] << " ";
  }
  cout << endl;
  return 0;
}
