#include <bits/stdc++.h>
using namespace std;
long long x[100005];
long long q[100005];
long long u[100005];
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  memset(q, 0, sizeof(q));
  memset(u, 0, sizeof(u));
  for (long long i = 0; i < n; i++) {
    cin >> x[i];
  }
  vector<long long> b, c, d;
  for (long long i = 0; i < m; i++) {
    long long w, e, r;
    cin >> w >> e >> r;
    w--;
    e--;
    b.push_back(w);
    c.push_back(e);
    d.push_back(r);
  }
  for (long long i = 0; i < k; i++) {
    long long o, p;
    cin >> o >> p;
    o--;
    p--;
    q[o]++;
    q[p + 1]--;
  }
  long long sum = 0;
  for (long long i = 0; i < m; i++) {
    sum += q[i];
    q[i] = sum;
  }
  for (long long i = 0; i < m; i++) {
    long long v = q[i];
    u[b[i]] = u[b[i]] + v * (d[i]);
    u[c[i] + 1] = u[c[i] + 1] - (v * d[i]);
  }
  long long sum1 = 0;
  for (long long i = 0; i < n; i++) {
    sum1 += u[i];
    u[i] = sum1;
  }
  for (long long i = 0; i < n; i++) {
    x[i] = x[i] + u[i];
  }
  for (long long i = 0; i < n; i++) {
    cout << x[i] << " ";
  }
  cout << endl;
}
