Do you like golf? I hate it. I hate golf so much that I decided to build the ultimate golf robot, a robot that will never miss a shot. I simply place it over the ball, choose the right direction and distance and, flawlessly, it will strike the ball across the air and into the hole. Golf will never be played again.
Unfortunately, it doesn't work as planned. So, here I am, standing in the green and preparing my first strike when I realize that the distance-selector knob built-in doesn't have all the distance options! Not everything is lost, as I have shots.
Given my current robot, how many holes will I be able to complete in strokes or less?
The first line has one integer (1 \leq n \leq 200\,000) — the number of different distances the Golf Bot can shoot. Each of the following lines has one integer k_i (1 \leq k_i \leq 200\,000) — the distance marked in position of the knob.
Next line has one integer (1 \leq m \leq 200\,000) — the number of holes in this course. Each of the following lines has one integer d_j (1 \leq d_j \leq 200\,000) — the distance from Golf Bot to hole .
You should output a single integer, the number of holes Golf Bot will be able to complete. Golf Bot cannot shoot over a hole on purpose and then shoot backwards.
Example
3
1
3
5
6
2
4
5
7
8
9
4Example 1
Golf Bot can shoot different distances (, and ) and there are holes in this course at distances , , , , and . Golf Bot will be able to put the ball in of these:
The st hole, at distance , can be reached by striking two times a distance of .
The nd hole, at distance , can be reached by striking with strength and then strength (or vice-versa).
The rd hole can be reached with just one stroke of strength .
The th hole can be reached with two strikes of strengths and .
Holes and can never be reached.