#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, n, m, k, x, y, z;
  cin >> n >> m >> k;
  vector<long long> narr, marr[3], karr[2], tarr(m, 0), a(n, 0);
  for (i = 0; i < n; i++) {
    cin >> x;
    narr.push_back(x);
  }
  for (i = 0; i < m; i++) {
    cin >> x >> y >> z;
    marr[0].push_back(x);
    marr[1].push_back(y);
    marr[2].push_back(z);
  }
  for (i = 0; i < k; i++) {
    cin >> x >> y;
    karr[0].push_back(x);
    karr[1].push_back(y);
  }
  for (i = 0; i < k; i++) {
    tarr[karr[0][i] - 1] += 1;
    if (karr[1][i] < m) tarr[karr[1][i]] -= 1;
  }
  for (i = 1; i < m; i++) tarr[i] += tarr[i - 1];
  for (i = 0; i < m; i++) {
    a[marr[0][i] - 1] += marr[2][i] * tarr[i];
    if (marr[1][i] < n) a[marr[1][i]] -= marr[2][i] * tarr[i];
  }
  cout << narr[0] + a[0];
  for (i = 1; i < n; i++) {
    a[i] += a[i - 1];
    cout << " " << a[i] + narr[i];
  }
  cout << endl;
  return 0;
}
