#include <bits/stdc++.h>
using namespace std;
long long num[100010], diff[100010], op[100010][3], optd[100010], n, m, k, l, r;
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m >> k;
  for (int i = 1; i <= n; i++) cin >> num[i];
  for (int i = 1; i <= n; i++) diff[i] = num[i] - num[i - 1];
  for (int i = 1; i <= m; i++) cin >> op[i][0] >> op[i][1] >> op[i][2];
  for (int i = 0; i < k; i++) {
    cin >> l >> r;
    ++optd[l];
    --optd[r + 1];
  }
  long long current = 0;
  for (int i = 1; i <= m; i++) {
    current += optd[i];
    diff[op[i][0]] += op[i][2] * current;
    diff[op[i][1] + 1] -= op[i][2] * current;
  }
  current = 0;
  for (int i = 1; i <= n; i++) {
    current += diff[i];
    cout << current << ' ';
  }
  cout << endl;
  return 0;
}
