#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  long long arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  pair<pair<long long, long long>, long long> operations[m];
  for (int i = 0; i < m; i++) {
    cin >> operations[i].first.first >> operations[i].first.second;
    cin >> operations[i].second;
    --operations[i].first.first;
    --operations[i].first.second;
  }
  long long occurrences[m];
  memset(occurrences, 0, sizeof(occurrences));
  for (int i = 0; i < k; i++) {
    long long x, y;
    cin >> x >> y;
    --x;
    --y;
    occurrences[x]++;
    if (y < m - 1) occurrences[y + 1]--;
  }
  for (long long i = 1; i < m; i++) {
    occurrences[i] += occurrences[i - 1];
  }
  long long toAdd[n];
  memset(toAdd, 0, sizeof(toAdd));
  for (int i = 0; i < m; i++) {
    long long l = operations[i].first.first;
    long long r = operations[i].first.second;
    long long d = operations[i].second * occurrences[i];
    toAdd[l] += d;
    if (r < n - 1) toAdd[r + 1] -= d;
  }
  for (long long i = 1; i < n; i++) toAdd[i] += toAdd[i - 1];
  for (int i = 0; i < n; i++) cout << arr[i] + toAdd[i] << " ";
  cout << endl;
  return 0;
}
