
'''simple docstring'''





from collections import Counter





def 							snake_case				(		UpperCAmelCase						)->      int:







      """simple docstring"""
      return sum(socks_by_color // 2 for socks_by_color in Counter(UpperCAmelCase						).values()						)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 a__		: List[Any]  							=							[int(x) for x in input("Enter socks by color :").rstrip().split()]
 print(f'''sock_merchant({colors}) = {sock_merchant(colors)}''')








'''simple docstring'''





def 							snake_case				(		UpperCAmelCase						)->      list:







      """simple docstring"""
      __A													=      1.3
      __A													=      len(UpperCAmelCase						)
      __A													=      False

      while not completed:
            # Update the gap value for a next comb
            __A													=      int(gap / shrink_factor						)
            if gap <= 1:
                  __A													=      True

            __A													=      0
            while index + gap < len(UpperCAmelCase						):
                  if data[index] > data[index + gap]:
                        # Swap values
                        __A						,   __A													=      data[index + gap], data[index]
                        __A													=      False
                  index += 1

      return data


if __name__ == "__main__":
 import doctest

 doctest.testmod()

 a__		: Optional[Any]  							=							input("Enter numbers separated by a comma:\n").strip()
 a__		: Union[str, Any]  							=							[int(item) for item in user_input.split(",")]
 print(comb_sort(unsorted))






