#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, m, k, x, y, z;
  cin >> n >> m >> k;
  vector<long long> v(n + 1);
  vector<long long> s(n + 2, 0);
  vector<long long> m1(m + 1);
  vector<long long> m2(m + 1);
  vector<long long> m3(m + 1);
  vector<long long> k1(m + 2);
  for (long long i = 1; i <= n; ++i) {
    cin >> x;
    v[i] = x;
  }
  for (long long i = 1; i <= m; ++i) {
    cin >> x >> y >> z;
    m1[i] = x;
    m2[i] = y;
    m3[i] = z;
  }
  for (long long i = 1; i <= k; ++i) {
    cin >> x >> y;
    k1[x] += 1;
    k1[y + 1] += -1;
  }
  long long sum = 0;
  for (long long i = 1; i <= m; ++i) {
    sum += k1[i];
    s[m1[i]] += sum * m3[i];
    s[m2[i] + 1] -= sum * m3[i];
  }
  sum = 0;
  for (long long i = 1; i <= n; ++i) {
    s[i] += sum;
    sum = s[i];
  }
  for (long long i = 1; i <= n; ++i) {
    s[i] += v[i];
    cout << s[i] << " ";
  }
  return 0;
}
