#include <bits/stdc++.h>
using namespace std;
void count() {}
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  long long int dp[100002] = {false};
  int tp[100001];
  for (int i = 1; i <= n; ++i) {
    cin >> tp[i];
  }
  dp[0] = 0;
  int a[100001], b[100001], c[100001];
  for (int i = 1; i <= m; ++i) {
    cin >> a[i] >> b[i] >> c[i];
  }
  int d[100002] = {false};
  for (int i = 1; i <= k; ++i) {
    int l, r;
    cin >> l >> r;
    d[l]++, d[r + 1]--;
  }
  for (int i = 1; i <= m; ++i) {
    d[i] += d[i - 1];
  }
  for (int i = 1; i <= m; ++i) {
    dp[a[i]] += (c[i] * 1ll * d[i]);
    dp[b[i] + 1] -= (c[i] * 1ll * d[i]);
  }
  for (int i = 1; i <= n; ++i) {
    dp[i] += dp[i - 1];
    cout << dp[i] + tp[i] << " ";
  }
  return 0;
}
