#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 5;
long long a[MAX], q[MAX], ans[MAX], n, m, k, x, y;
pair<pair<int, int>, long long> o[MAX];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m >> k;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < m; i++)
    cin >> o[i].first.first >> o[i].first.second >> o[i].second;
  for (int i = 0; i < k; i++) {
    cin >> x >> y;
    q[x - 1]++, q[y]--;
  }
  for (int i = 1; i < m; i++) q[i] += q[i - 1];
  for (int i = 0; i < m; i++) o[i].second = o[i].second * q[i];
  for (int i = 0; i < m; i++)
    ans[o[i].first.first - 1] += o[i].second,
        ans[o[i].first.second] -= o[i].second;
  for (int i = 1; i < n; i++) ans[i] += ans[i - 1];
  for (int i = 0; i < n; i++) cout << a[i] + ans[i] << " ";
  return 0;
}
