
def    _a (						lowerCamelCase							):
 for i, _ in enumerate(lowerCamelCase							):
  if (i % 2 == 1) == (nums[i - 1] > nums[i]):
   lowerCamelCase      ,   lowerCamelCase		:     List[Any]          =				nums[i], nums[i - 1]

 return nums


if __name__ == "__main__":
      print("""Enter the array elements:""")
      _lowerCamelCase        =list(map(int, input().split()))
      print("""The unsorted array is:""")
      print(array)
      print("""Array after Wiggle sort:""")
      print(wiggle_sort(array))






from collections import defaultdict





def    _a (						lowerCamelCase							):
 lowerCamelCase		:     defaultdict[str, int]          =				defaultdict(lowerCamelCase							)
 # Creating a dictionary containing count of each word
 for word in sentence.split():
  occurrence[word] += 1
 return occurrence


if __name__ == "__main__":
      for word, count in word_occurrence("""INPUT STRING""").items():
            print(f'''{word}: {count}''')




