bobo is good at GCD (greatest common divisor) and LCM (least common multiple).
But today he gets stuck in summing up lcm(i,j) for all 1≤i≤n,1≤j≤m with gcd(i,j)≤a, modulo (109+7).
The first line contains an integer q, which denotes the number of questions (1≤q≤104).
Each of the following q lines contains 3 integers n,m,a, as described in the statement (1≤n,m,a≤105).
For each question, print a single integer denoting the sum.