"""simple docstring"""







def       A__    (	lowercase_     :	list[int | list]      , lowercase_     :	int						)  ->							int:
   __lowerCamelCase    		=					0
   for ele in arr:
      total_sum += product_sum(lowercase_      , depth + 1						) if isinstance(lowercase_      , lowercase_						) else ele
   return total_sum * depth



def       A__    (	lowercase_     :	list[int | list]						)  ->							int:
   return product_sum(lowercase_      , 1						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()







"""simple docstring"""







from collections import Counter



def       A__    (	lowercase_     :	list[int]						)  ->							int:
   return sum(socks_by_color // 2 for socks_by_color in Counter(lowercase_						).values()						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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






