#include <bits/stdc++.h>
using namespace std;
struct Operation {
  uint64_t l;
  uint64_t r;
  uint64_t d;
  int64_t count;
};
uint64_t* arr;
int64_t* ddArr;
struct Operation* operations;
int main() {
  uint64_t n, m, k;
  cin >> n;
  cin >> m;
  cin >> k;
  arr = new uint64_t[n];
  operations = new struct Operation[m];
  ddArr = new int64_t[n];
  for (uint64_t i = 0; i < n; i++) {
    cin >> arr[i];
    ddArr[i] = 0;
  }
  for (uint64_t i = 0; i < m; i++) {
    uint64_t l, r, d;
    cin >> l;
    cin >> r;
    cin >> d;
    l--;
    r--;
    operations[i] = {l, r, d, 0};
  }
  for (uint64_t i = 0; i < k; i++) {
    uint64_t l, r;
    cin >> l;
    cin >> r;
    l--;
    r--;
    operations[l].count++;
    if (r + 1 < m) operations[r + 1].count--;
  }
  uint64_t countTotal = 0;
  struct Operation current;
  for (uint64_t i = 0; i < m; i++) {
    current = operations[i];
    countTotal += current.count;
    ddArr[current.l] += current.d * countTotal;
    if (current.r + 1 < n) ddArr[current.r + 1] -= current.d * countTotal;
  }
  uint64_t arrTotal = 0;
  for (uint64_t i = 0; i < n; i++) {
    arrTotal += ddArr[i];
    int64_t tot = arr[i] + arrTotal;
    cout << tot << " ";
  }
}
