lcm extreme acceptes, codeforces 247