#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  vector<long long> a(n);
  for (long long &i : a) cin >> i;
  vector<vector<long long>> b(m, vector<long long>(3));
  for (auto &i : b) {
    cin >> i[0] >> i[1] >> i[2];
    i[0]--, i[1]--;
  }
  vector<long long> pre(m + 1);
  while (k--) {
    long long x, y;
    cin >> x >> y;
    x--, y--;
    pre[x] += 1;
    pre[y + 1] -= 1;
  }
  for (long long i = 1; i <= m; i++) pre[i] += pre[i - 1];
  for (long long i = 0; i < m; i++) b[i][2] *= pre[i];
  pre.assign(n + 1, 0);
  for (auto i : b) {
    pre[i[0]] += i[2];
    pre[i[1] + 1] -= i[2];
  }
  for (long long i = 1; i <= n; i++) pre[i] += pre[i - 1];
  for (long long i = 0; i < n; i++) a[i] += pre[i];
  for (auto i : a) cout << i << " ";
  return 0;
}
