B: AddMulSubDiv

Problem Statement

You have an array A of N integers. A_i denotes the i-th element of A.

You have to process one of the following queries Q times:

After applying Q queries one by one, how many elements in A are no less than L and no more than R?

Input

N Q L R
A_1 A_2 ... A_N
q_1 x_1 s_1 t_1
:
q_Q x_Q s_Q t_Q

Constraints

Output

Output the number of elements in A that are no less than L and no more than R after processing all given queries in one line.

Sample Input 1

3 3 3 10
1 -2 3
1 2 2 3
2 20 1 3
2 1 20 5

Output for Sample Input 1

1