#include <bits/stdc++.h>
using namespace std;
long long datas[200000];
long long kl[200000][3] = {0};
long long pl[200000] = {0};
long long cl[200000] = {0};
long long m, n, k;
int main() {
  ios::sync_with_stdio(false);
  cin >> m >> n >> k;
  long long a, b;
  for (long long i = 0; i < m; i++) {
    cin >> datas[i];
  }
  for (long long i = 0; i < n; i++) {
    cin >> kl[i][0] >> kl[i][1] >> kl[i][2];
  }
  for (long long i = 0; i < k; i++) {
    cin >> a >> b;
    pl[a - 1]++;
    pl[b]--;
  }
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    sum += pl[i];
    kl[i][2] *= sum;
  }
  for (long long i = 0; i < n; i++) {
    cl[kl[i][0] - 1] += kl[i][2];
    cl[kl[i][1]] -= kl[i][2];
  }
  sum = 0;
  for (long long i = 0; i < m; i++) {
    sum += cl[i];
    if (i + 1 == m)
      cout << sum + datas[i] << endl;
    else
      cout << sum + datas[i] << ' ';
  }
  return 0;
}
