#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long n, m, k;
  cin >> n >> m >> k;
  vector<long long> arr(n);
  vector<long long> add(n + 1);
  for (long long i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  vector<vector<long long> > ops(m);
  for (long long i = 0; i < m; ++i) {
    vector<long long> op(3);
    cin >> op[0] >> op[1] >> op[2];
    ops[i] = op;
  }
  long long x, y;
  vector<long long> count(m + 1);
  for (long long i = 0; i < k; ++i) {
    cin >> x >> y;
    count[x - 1]++;
    count[y]--;
  }
  long long sum = 0;
  for (long long i = 0; i < m; ++i) {
    sum += count[i];
    add[ops[i][0] - 1] += sum * ops[i][2];
    add[ops[i][1]] -= sum * ops[i][2];
  }
  long long total = 0;
  for (long long i = 0; i < n; ++i) {
    total += add[i];
    cout << total + arr[i] << " ";
  }
  return 0;
}
