Problem Description

Read n pairs key value. Then two integers L and R. Output how many keys have value in range [L,R].

Input Format

First line n. Next n lines: key value. Last line: L R.

Output Format

One integer count.

Sample Test Case

Input:
5 a 3 b 10 c -2 d 7 e 7 3 7
Output:
3

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next