#include <bits/stdc++.h>
using namespace std;
int n, m, k, x, y;
long long b[100005], c[100005];
int a[100005], l[100005], r[100005], d[100005];
int main() {
  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] >> d[i];
  for (int i = 1; i <= k; i++) {
    cin >> x >> y;
    c[x]++;
    c[y + 1]--;
  }
  for (int i = 1; i <= m; i++) c[i] += c[i - 1];
  for (int i = 1; i <= m; i++) {
    b[l[i]] += d[i] * c[i];
    b[r[i] + 1] -= d[i] * c[i];
  }
  for (int i = 1; i <= n; i++) {
    b[i] += b[i - 1];
    cout << a[i] + b[i] << " ";
  }
  return 0;
}
