- Time limit: 1.00 s
- Memory limit: 512 MB
There are apples and bananas, and each of them has an integer weight between . Your task is to calculate, for each weight between , the number of ways we can choose an apple and a banana whose combined weight is .
Input
The first input line contains three integers , and : the number , the number of apples and the number of bananas.
The next line contains integers : weight of each apple.
The last line contains integers : weight of each banana.
Output
For each integer between print the number of ways to choose an apple and a banana whose combined weight is .
Constraints
Example
Input:
5 3 4 5 2 5 4 3 2 3
Output:
0 0 1 2 1 2 4 2 0
Explanation: For example for = there are different ways: we can pick an apple of weight in two different ways and a banana of weight in two different ways.