#include <bits/stdc++.h>
using namespace std;
vector<long long> a;
vector<pair<pair<long, long>, long long>> operations;
long long oper[112345];
long long times[112345];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  for (int i = 0; i < n; ++i) {
    long long x;
    cin >> x;
    a.push_back(x);
  }
  for (int i = 0; i < m; ++i) {
    long long l, r, d;
    cin >> l >> r >> d;
    operations.push_back(make_pair(make_pair(l - 1, r - 1), d));
  }
  for (int i = 0; i < k; ++i) {
    int x, y;
    cin >> x >> y;
    times[x - 1] += 1;
    times[y] -= 1;
  }
  for (int i = 0; i < m; ++i) {
    if (i > 0) times[i] += times[i - 1];
    oper[operations[i].first.first] += times[i] * operations[i].second;
    oper[operations[i].first.second + 1] -= times[i] * operations[i].second;
  }
  for (int i = 0; i < n; ++i) {
    if (i > 0) oper[i] += oper[i - 1];
  }
  for (int i = 0; i < n; ++i) {
    cout << a[i] + oper[i] << " ";
  }
  cout << endl;
  return 0;
}
