Small GCD Div. 2D SOLUTION (Codeforces Round 911)