For any positive integer n, let's define Möbius function μ(n). It has values in −1,0,1 depending on the factorization of n into prime factors:
For example, μ(1)=1,μ(2)=−1,μ(6)=1,μ(12)=0.
You are given two arrays a and b, consisting of positive integers.
Let k_y be the number of pairs (i,j),1≤i≤n,1≤j≤m such that μ(a_i⋅b_j) is equal to y.
Your task is to calculate k_−1, k_0 and k_1.
The first line of input contains two integers n,m (1≤n,m≤2⋅105) --- the sizes of arrays a and b.
The second line contains n integers a_i (1≤a_i≤106) separated by spaces.
The third line contains m integers b_i (1≤b_i≤106) separated by spaces.
Output three integers k_−1,k_0,k_1 separated by spaces in a single line, where k_y=∣(i,j):μ(a_i⋅b_j)=y∣.