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