#include <bits/stdc++.h>
using namespace std;
const long long INF = 1000000000 + 7;
const double esp = 1e-13;
long long n, m, k, a[100000 + 10], l[100000 + 10], r[100000 + 10],
    vl[100000 + 10], x, y, sl[100000 + 10], tang[100000 + 10];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> m >> k;
  for (long long i = 1; i <= n; i++) cin >> a[i];
  for (long long i = 1; i <= m; i++) cin >> l[i] >> r[i] >> vl[i];
  for (long long i = 1; i <= k; i++) {
    cin >> x >> y;
    sl[x]++;
    sl[y + 1]--;
  }
  for (long long i = 1; i <= m; i++) sl[i] += sl[i - 1];
  for (long long i = 1; i <= m; i++) {
    tang[l[i]] += vl[i] * sl[i];
    tang[r[i] + 1] -= vl[i] * sl[i];
  }
  for (long long i = 1; i <= n; i++) tang[i] += tang[i - 1];
  for (long long i = 1; i <= n; i++) cout << tang[i] + a[i] << " ";
}
