




'''simple docstring'''







from collections import Counter






def 		_lowercase		(	lowercase_  ):



		'''simple docstring'''







		return sum(socks_by_color // 2 for socks_by_color in Counter(lowercase_  ).values()  )


if __name__ == "__main__":
						import doctest

						doctest.testmod()

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













from __future__ import annotations

from collections.abc import Generator




def    __A    (   _lowercase       ):

					'''simple docstring'''







					if not isinstance(_lowercase    ,	_lowercase       ) or n < 1:
										raise Exception('''Sequence only defined for positive integers'''       )

					yield n
					while n != 1:
										if n % 2 == 0:
															n //= 2
										else:
															_A									=       3 * n + 1
										yield n




def    __A    (   ):

					'''simple docstring'''







					_A									=       43
					_A									=       tuple(collatz_sequence(_lowercase       )       )
					print(_lowercase       )
					print(f"""Collatz sequence from {n} took {len(_lowercase       )} steps."""       )


if __name__ == "__main__":
				main()



