#include <bits/stdc++.h>
using namespace std;
int n, m, k;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m >> k;
  vector<int> a(n + 2);
  for (int i = 1; i <= n; i++) cin >> a[i];
  vector<pair<pair<int, int>, int> > v(m + 2);
  for (int i = 1; i <= m; i++) {
    cin >> v[i].first.first >> v[i].first.second >> v[i].second;
  }
  vector<long long int> dp1(m + 2);
  vector<long long int> dp2(n + 2);
  for (int i = 1; i <= k; i++) {
    int x, y;
    cin >> x >> y;
    dp1[x]++;
    dp1[y + 1]--;
  }
  for (int i = 1; i <= m; i++) {
    dp1[i] = dp1[i] + dp1[i - 1];
    dp2[v[i].first.first] += 1LL * dp1[i] * v[i].second;
    dp2[v[i].first.second + 1] -= 1LL * dp1[i] * v[i].second;
  }
  for (int i = 1; i <= n; i++) {
    dp2[i] = dp2[i - 1] + dp2[i];
    cout << a[i] + dp2[i] << ' ';
  }
  return 0;
}
