#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, k, i;
  cin >> n >> m >> k;
  vector<long long int> a(n), s1(m, 0), e1(m, 0), tot1(m, 0), s2(n, 0),
      e2(n, 0), tot2(n, 0);
  long long int b[m][3];
  long long int c[k][2];
  for (i = 0; i < n; i++) cin >> a[i];
  for (i = 0; i < m; i++) {
    cin >> b[i][0] >> b[i][1] >> b[i][2];
    b[i][0]--;
    b[i][1]--;
  }
  for (i = 0; i < k; i++) {
    cin >> c[i][0] >> c[i][1];
    c[i][0]--;
    c[i][1]--;
    s1[c[i][0]]++;
    e1[c[i][1]]++;
  }
  long long int sum = 0;
  for (i = 0; i < m; i++) {
    tot1[i] = sum + s1[i];
    sum += s1[i] - e1[i];
  }
  for (i = 0; i < m; i++) {
    s2[b[i][0]] += tot1[i] * b[i][2];
    e2[b[i][1]] += tot1[i] * b[i][2];
  }
  sum = 0;
  for (i = 0; i < n; i++) {
    tot2[i] = sum + s2[i] + a[i];
    sum += s2[i] - e2[i];
    cout << tot2[i] << " ";
  }
}
