/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int m = sc.nextInt();
		int k = sc.nextInt();
		int[] a = new int[n+1];
		for(int i=1;i<=n;i++)
		{
			a[i]=sc.nextInt();
		}
		int[][] op = new int[m+1][3];
		for(int i=1;i<=m;i++)
		{
			op[i][0]=sc.nextInt();  //l
			op[i][1]=sc.nextInt();   //r
			op[i][2]=sc.nextInt();   //d
		}
		int[] count= new int[m+2];
		for(int i=0;i<k;i++)
		{
			int x = sc.nextInt();
			int y = sc.nextInt();
			count[x]++;
			count[y+1]--;
			
		}
		for(int i=1;i<=m;i++)
		{
			count[i]+=count[i-1];
		}
		long[] diff = new long[n+2];
		for(int i=1;i<=m;i++)
		{
			int l = op[i][0];
			int r = op[i][1];
			int d = op[i][2];
			diff[l]+=(long)d*count[i];
			diff[r+1]-=(long)d*count[i];
		}
		long[] pre_diff = new long[n+2];
		for(int i=1;i<=n;i++)
		{
			pre_diff[i]=pre_diff[i-1]+diff[i];
		}
		for(int i=1;i<=n;i++)
		{
			a[i]+=pre_diff[i];
			System.out.print(a[i]+" ");
		}
		System.out.println();
	}
}