#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const int inf = 1e9 + 1;
const double eps = 1e-15;
const int pw = 257;
int n, m, k;
long long a[N], l[N], r[N], x[N], p[N], L, R, ans[N];
int main() {
  ios_base ::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> m >> k;
  for (int i = 1; i <= n; ++i) cin >> a[i];
  for (int i = 1; i <= m; ++i) cin >> l[i] >> r[i] >> x[i];
  for (int i = 1; i <= k; ++i) {
    cin >> L >> R;
    ++p[L];
    --p[R + 1];
  }
  for (int i = 1; i <= m; ++i) {
    p[i] += p[i - 1];
    ans[l[i]] += x[i] * p[i];
    ans[r[i] + 1] -= x[i] * p[i];
  }
  for (int i = 1; i <= n; ++i) {
    ans[i] += ans[i - 1];
    cout << a[i] + ans[i] << ' ';
  }
  return 0;
}
