#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
long long arr[100010], dpArr[100010], dpQuery[100010];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, m, k;
  cin >> n >> m >> k;
  for (long long i = (1); i < (n + 1); ++i) cin >> arr[i];
  pair<pair<long long, long long>, long long> q[m + 1];
  for (long long i = (1); i < (m + 1); ++i)
    cin >> q[i].first.first >> q[i].first.second >> q[i].second;
  for (long long i = 0; i < (k); ++i) {
    long long x, y;
    cin >> x >> y;
    ++dpQuery[x];
    --dpQuery[y + 1];
  }
  long long sum = 0LL;
  for (long long i = (1); i < (m + 1); ++i) {
    sum += dpQuery[i];
    dpArr[q[i].first.first] += (sum * q[i].second);
    dpArr[q[i].first.second + 1] -= (sum * q[i].second);
  }
  sum = 0LL;
  for (long long i = (1); i < (n + 1); ++i) {
    sum += dpArr[i];
    cout << (sum + arr[i]) << " ";
  }
  cout << '\n';
  return 0;
}
