#include <bits/stdc++.h>
using namespace std;
long long a[100010], b[100010], c[100010], d[100010], e[100010], f[100010];
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  for (int i = 1; i <= m; ++i) cin >> b[i] >> c[i] >> d[i];
  for (int i = 1; i <= k; ++i) {
    int x, y;
    cin >> x >> y;
    e[x]++;
    e[y + 1]--;
  }
  for (int i = 1; i <= m; ++i) {
    e[i] += e[i - 1];
    f[b[i]] += d[i] * e[i];
    f[c[i] + 1] -= d[i] * e[i];
  }
  for (int i = 1; i <= n; ++i) {
    f[i] += f[i - 1];
    cout << a[i] + f[i] << ' ';
  }
}
