Good pairs
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two arrays А and B with integers are given. Pair of indexes and are good, if .
Find the number of pairs of good indexes.
Input
First line contains number . Second line contains integers of array А. Third line contains integers of array B.
Output
Print the number of pairs of good indexes.
Examples
Input #1
Answer #1
Submissions 577
Acceptance rate 12%