public static void main ( String [ ] args ) throws IOException {
  FastReader in = new FastReader ( System . in ) ;
  PrintWriter pw = new PrintWriter ( System . out ) ;
  int n = in . nextInt ( ) , m = in . nextInt ( ) , k = in . nextInt ( ) ;
  long [ ] arr = new long [ n + 5 ] ;
  tuple [ ] update = new tuple [ m + 1 ] ;
  for ( int i = 1 ;
  i <= n ;
  i ++ ) {
    arr [ i ] = in . nextLong ( ) ;
  }
  for ( int i = 1 ;
  i <= m ;
  i ++ ) {
    update [ i ] = new tuple ( in . nextInt ( ) , in . nextInt ( ) , in . nextLong ( ) ) ;
  }
  int [ ] mark = new int [ m + 5 ] ;
  for ( int i = 1 ;
  i <= k ;
  i ++ ) {
    int x = in . nextInt ( ) , y = in . nextInt ( ) ;
    mark [ x ] ++ ;
    mark [ y + 1 ] -- ;
  }
  for ( int i = 1 ;
  i <= m ;
  i ++ ) mark [ i ] += mark [ i - 1 ] ;
  for ( int i = 1 ;
  i <= m ;
  i ++ ) {
    update [ i ] = new tuple ( update [ i ] . l , update [ i ] . r , update [ i ] . d * mark [ i ] ) ;
  }
  long [ ] res = solve ( arr , n , m , update ) ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) pw . print ( res [ i ] + " " ) ;
  pw . println ( ) ;
  ;
}

public static void main ( String [ ] args ) throws IOException { FastReader in = new FastReader ( System . in ) ; PrintWriter pw = new PrintWriter ( System . out ) ; int n = in . nextInt ( ) , m = in . nextInt ( ) , k = in . nextInt ( ) ; long [ ] arr = new long [ n + 5 ] ; tuple [ ] update = new tuple [ m + 1 ] ; for ( int i = 1 ; i <= n ; i ++ ) { arr [ i ] = in . nextLong ( ) ; } for ( int i = 1 ; i <= m ; i ++ ) { update [ i ] = new tuple ( in . nextInt ( ) , in . nextInt ( ) , in . nextLong ( ) ) ; } int [ ] mark = new int [ m + 5 ] ; for ( int i = 1 ; i <= k ; i ++ ) { int x = in . nextInt ( ) , y = in . nextInt ( ) ; mark [ x ] ++ ; mark [ y + 1 ] -- ; } for ( int i = 1 ; i <= m ; i ++ ) mark [ i ] += mark [ i - 1 ] ; for ( int i = 1 ; i <= m ; i ++ ) { update [ i ] = new tuple ( update [ i ] . l , update [ i ] . r , update [ i ] . d * mark [ i ] ) ; } long [ ] res = solve ( arr , n , m , update ) ; for ( int i = 0 ; i < n ; i ++ ) pw . print ( res [ i ] + " ▁ " ) ; pw . println ( ) ; ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (type_identifier) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (update_expression (array_access array: (identifier) index: (identifier)))) (expression_statement (update_expression (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) (binary_expression left: (field_access object: (array_access array: (identifier) index: (identifier)) field: (identifier)) right: (array_access array: (identifier) index: (identifier))))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (string_literal)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))