#include <bits/stdc++.h>
using namespace std;
long long cum[100005], cum0[100005], d[100005];
pair<long long, long long> op[100005];
int32_t main() {
  long long n, m, k;
  cin >> n >> m >> k;
  long long arr[n + 1];
  for (long long i = 1; i <= n; i++) cin >> arr[i];
  for (long long i = 1; i <= m; i++) {
    cin >> op[i].first >> op[i].second >> d[i];
  }
  while (k--) {
    long long l, r;
    cin >> l >> r;
    cum[l]++;
    cum[r + 1]--;
  }
  long long sum = 0;
  for (long long i = 1; i <= m; i++) {
    sum += cum[i];
    cum0[op[i].first] += sum * d[i];
    cum0[op[i].second + 1] -= sum * d[i];
  }
  sum = 0;
  for (long long i = 1; i <= n; i++) {
    sum += cum0[i];
    cout << arr[i] + sum << ' ';
  }
  return 0;
}
