#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const long long N = 2e5 + 1;
long long n, m, k;
long long arr[N][2];
long long Zap[N][4];
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 >> arr[i][0];
  for (int i = 0; i < m; i++) cin >> Zap[i][0] >> Zap[i][1] >> Zap[i][2];
  for (int i = 0; i < k; i++) {
    long long x, y;
    cin >> x >> y;
    Zap[x - 1][3]++, Zap[y][3]--;
  }
  for (int i = 0; i < m; i++) {
    Zap[i][3] += (i > 0 ? Zap[i - 1][3] : 0);
    long long l = Zap[i][0] - 1, r = Zap[i][1];
    arr[l][1] += Zap[i][3] * Zap[i][2];
    arr[r][1] -= Zap[i][3] * Zap[i][2];
  }
  cout << arr[0][0] + arr[0][1] << " ";
  for (int i = 1; i < n; i++) {
    arr[i][1] += arr[i - 1][1];
    cout << arr[i][1] + arr[i][0] << " ";
  }
}
