Fast Squarier Transform
Easy
Execution time limit is 2 seconds
Runtime memory usage limit is 256 megabytes
You are given two arrays of integers and .
Find the following value:
Note that denotes the maximum integer not exceeding , and denotes the absolute value of .
Input
The first line of the input contains integers ().
The second line of the input contains integers (, ).
The third line of the input contains integers (, ).
Output
Print a single integer — the sum from the statement.
Examples
Input #1
Answer #1
Input #2
Answer #2
Note
In the first sample the answer is .
In the second sample, the answer is .
Submissions 19
Acceptance rate 47%