Distinct Pattern