#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, q, w, qwer;
  cin >> n >> m >> k;
  int a[100002];
  long long b[100002][3];
  int c[100002] = {};
  long long Q[100002] = {};
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < m; i++) cin >> b[i][0] >> b[i][1] >> b[i][2];
  for (int i = 0; i < k; i++) {
    cin >> q >> w;
    c[q - 1]++;
    c[w]--;
  }
  for (int i = 1; i < 100002; i++) c[i] += c[i - 1];
  for (int i = 0; i < m; i++) {
    Q[b[i][0] - 1] += b[i][2] * c[i];
    Q[b[i][1]] -= b[i][2] * c[i];
  }
  for (int i = 1; i <= 100002; i++) Q[i] += Q[i - 1];
  for (int i = 0; i < n; i++) cout << a[i] + Q[i] << " ";
  cout << endl;
  return 0;
}
