#include <bits/stdc++.h>
using namespace std;
long long a[100005], b[100005], c[100005], d[100005], e[100005] = {0},
                                                      f[100005] = {0};
int main() {
  ifstream inf("input.txt");
  long long n, m, k;
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= m; i++) cin >> b[i] >> c[i] >> d[i];
  for (int i = 1; i <= k; i++) {
    int x, y;
    cin >> x >> y;
    e[x]++;
    e[y + 1]--;
  }
  long long j = 0;
  for (int i = 1; i <= m; i++) {
    j += e[i];
    d[i] *= j;
  }
  for (int i = 1; i <= m; i++) {
    f[b[i]] += d[i];
    f[c[i] + 1] -= d[i];
  }
  j = 0;
  for (int i = 1; i <= n; i++) {
    j += f[i];
    cout << a[i] + j << ' ';
  }
}
