Write a program such that, given strictly positive natural numbers , prints their least common multiple greater than zero.
Input consists of several cases. Each case begins with a number , followed by . A special case with marks the end of input.
For every case, print in a line the least common multiple greater than zero of . For the given cases, this number will always be between 1 and .
Input
3 14 4 5 1 7 2 18 18 2 2000000 3000000 0
Output
140 7 18 6000000