from collections import Counter





def      __lowercase  (		lowerCamelCase      :  list[int]			):
 return sum(socks_by_color // 2 for socks_by_color in Counter(lowerCamelCase			).values()			)


if __name__ == "__main__":
   import doctest

   doctest.testmod()

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




from datetime import date

import requests

a_					      = 'https://api.carbonintensity.org.uk/intensity'





def      __lowercase  (		):
 UpperCamelCase_      :		Dict				=      requests.get(lowerCamelCase			).json()['data'][0]
 return last_half_hour["intensity"]["actual"]





def      __lowercase  (		lowerCamelCase      :  Union[str, Any]						,						lowerCamelCase      :  Union[str, Any]			):
 return requests.get(F"{BASE_URL}/{start}/{end}"			).json()["data"]


if __name__ == "__main__":
   for entry in fetch_from_to(start=date(2_020, 10, 1), end=date(2_020, 10, 3)):
      print('from {from} to {to}: {intensity[actual]}'.format(**entry))
   print(F"""{fetch_last_half_hour() = }""")



