#include <bits/stdc++.h>
using namespace std;
const int oo = 0x3f3f3f3f;
const int mod = 2000000011;
const long long OO = 2e18;
const int N = 1e5 + 5;
;
long long n, m, k, l[N], r[N], b[N], cum[N], x, y, sum[N], a[N];
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  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] >> b[i];
  for (int i = 1; i <= k; i++) {
    cin >> x >> y;
    cum[x]++;
    cum[y + 1]--;
  }
  for (int i = 1; i <= m; i++) cum[i] += cum[i - 1];
  for (int i = 1; i <= m; i++) {
    sum[l[i]] += cum[i] * b[i];
    sum[r[i] + 1] -= cum[i] * b[i];
  }
  for (int i = 1; i <= n; i++) sum[i] += sum[i - 1];
  for (int i = 1; i <= n; i++) cout << sum[i] + a[i] << " ";
  return 0;
}
