



'''simple docstring'''



from collections import Counter



def 	__lowerCAmelCase       (				lowerCamelCase :    list[int]       ):






	'''simple docstring'''




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


if __name__ == "__main__":
	import doctest

	doctest.testmod()

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




'''simple docstring'''



import math



def 	__lowerCAmelCase       (				lowerCamelCase :    int       ):






	'''simple docstring'''




	if not isinstance(lowerCamelCase					,		lowerCamelCase       ):
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be an integer'''
		raise TypeError(lowerCamelCase       )
	if number < 1:
		__lowerCAmelCase       				=	f'''Input value of [number={number}] must be a positive integer'''
		raise ValueError(lowerCamelCase       )
	__lowerCAmelCase       				=	[number]
	while number != 1:
		if number % 2 == 0:
			__lowerCAmelCase       				=	math.floor(math.sqrt(lowerCamelCase       )       )
		else:
			__lowerCAmelCase       				=	math.floor(
			    math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       ) * math.sqrt(lowerCamelCase       )       )
		sequence.append(lowerCamelCase       )
	return sequence


if __name__ == "__main__":
	import doctest

	doctest.testmod()