gcd and lcm parser both work