#include <bits/stdc++.h>
using namespace std;
struct operation {
  long long l;
  long long r;
  long long d;
};
int main() {
  long long n, m, k;
  cin >> n >> m >> k;
  vector<long long> v(5 + (int)1e5, 0), ans(5 + (int)1e5, 0);
  for (long long i = 1; i <= n; i++) cin >> v[i];
  vector<operation> ops(5 + (int)1e5, {0, 0, 0});
  for (long long i = 1; i <= m; i++) {
    long long a, b, c;
    cin >> a >> b >> c;
    ops[i] = {a, b, c};
  }
  vector<long long> cml(5 + (int)1e5, 0);
  for (long long i = 0; i < k; i++) {
    long long a, b;
    cin >> a >> b;
    cml[a]++;
    cml[b + 1]--;
  }
  for (long long i = 1; i <= m; i++) cml[i] = cml[i] + cml[i - 1];
  for (long long i = 1; i <= m; i++) ops[i].d *= cml[i];
  for (long long i = 1; i <= m; i++) {
    ans[ops[i].l] += ops[i].d;
    ans[ops[i].r + 1] -= ops[i].d;
  }
  for (long long i = 1; i <= n; i++) ans[i] += ans[i - 1];
  for (long long i = 1; i <= n; i++) cout << ans[i] + v[i] << endl;
  return 0;
}
