Solve ACM 12626.