


from collections import Counter
def       UpperCamelCase__     (  SCREAMING_SNAKE_CASE__						):
 return sum(socks_by_color // 2 for socks_by_color in Counter(SCREAMING_SNAKE_CASE__						).values()						)


if __name__ == "__main__":
       import doctest

       doctest.testmod()

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





import doctest

import projectq
from projectq.ops import H, Measure
def       UpperCamelCase__     (  SCREAMING_SNAKE_CASE__						):
 __lowerCamelCase		:							int							=						quantum_engine.allocate_qubit()
 H | qubit
 Measure | qubit
 return int(SCREAMING_SNAKE_CASE__						)


if __name__ == "__main__":
       doctest.testmod()

       # initialises a new quantum backend
       lowercase_           =	projectq.MainEngine()

       # Generate a list of 10 random numbers
       lowercase_           =	[get_random_number(quantum_engine) for _ in range(1_0)]

       # Flushes the quantum engine from memory
       quantum_engine.flush()

       print('Random numbers', random_numbers_list)

