#include <bits/stdc++.h>
using namespace std;
long long sum, ar[100005], op[100005][3], b[100005], res[100005];
int main() {
  long long n, m, k;
  scanf("%lld%lld%lld", &n, &m, &k);
  for (long long i = 0; i < n; i++) scanf("%lld", ar + i);
  for (long long i = 0; i < m; i++)
    scanf("%lld%lld%lld", op[i] + 0, op[i] + 1, op[i] + 2);
  for (long long l, r, i = 0; i < k; i++) {
    scanf("%lld%lld", &l, &r);
    l--, r--;
    b[l]++, b[r + 1]--;
  }
  for (long long i = 0; i < m; i++) {
    sum += b[i];
    res[op[i][0] - 1] += op[i][2] * sum;
    res[op[i][1]] -= op[i][2] * sum;
  }
  ar[0] += res[0];
  for (long long i = 1; i < n; i++) {
    res[i] += res[i - 1];
    ar[i] += res[i];
  }
  for (long long i = 0; i < n; i++) printf("%lld ", ar[i]);
}
