func gcd(a: Int, b: Int) -> Int { let mod = a % b if mod == 0 { return min(a, b) } return gcd(a: b, b: mod) }
func lcm(a: Int, b: Int) -> Int { return a * b / gcd(a: a, b: b) }