2158F2: Distinct GCDs (Hard Version) | Nudge