





'''simple docstring'''







from collections import Counter





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


if __name__ == "__main__":
					import doctest

					doctest.testmod()

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












def  A					(				UpperCAmelCase					):
					if not isinstance(UpperCAmelCase	,	UpperCAmelCase					):
										_snake_case							:       Optional[Any]												= F"""Input value of [number={number}] must be an integer"""
										raise TypeError(UpperCAmelCase					)
					if number < 1:
										raise ValueError("Input must be a positive integer"					)
					return number * (2 * number - 1)


if __name__ == "__main__":
							import doctest

							doctest.testmod()