#include <bits/stdc++.h>
using namespace std;
int n, m, k, x, y;
int l[100100], r[100100], d[100100];
long long arr[100100], op[100100], added[100100];
int main() {
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) cin >> arr[i];
  for (int i = 1; i <= m; i++) cin >> l[i] >> r[i] >> d[i];
  while (k--) {
    cin >> x >> y;
    op[x]++;
    op[y + 1]--;
  }
  for (int i = 1; i <= m; i++) op[i] += op[i - 1];
  long long cons = 0;
  for (int i = 1; i <= m; i++) {
    cons = (op[i] * d[i]);
    added[l[i]] += cons;
    added[(r[i] + 1)] -= cons;
  }
  for (int i = 1; i <= n; i++) added[i] += added[i - 1];
  for (int i = 1; i <= n; i++) cout << arr[i] + added[i] << " ";
  return 0;
}
