#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(0);
  cin.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  vector<long long> arr(n);
  vector<long long> tmp(n + 1);
  vector<int> op(m + 1);
  vector<int> left(m);
  vector<int> right(m);
  vector<int> value(m);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = 0; i < m; i++) {
    cin >> left[i] >> right[i] >> value[i];
  }
  while (k--) {
    int x, y;
    cin >> x >> y;
    op[x - 1]++;
    op[y]--;
  }
  for (int i = 0; i < m; i++) {
    if (i) op[i] += op[i - 1];
    tmp[left[i] - 1] += 1LL * op[i] * value[i];
    tmp[right[i]] -= 1LL * op[i] * value[i];
  }
  for (int i = 0; i < n; i++) {
    if (i) tmp[i] += tmp[i - 1];
    arr[i] += tmp[i];
    cout << arr[i] << " ";
  }
  return 0;
}
