func_code: def weird_case(some_str):
      A = ' '
      some_str = input().upper()
      parse = A.join(some_str).split()
      sentence = ''
      a = ''
      b = []
      j = 0
      while j < len(some_str):
          if some_str[j] == A:
              b.append(j)
          j = j + 1
      i = 0
      while i < len(parse):
          if i % 2 == 0:
              a += parse[i]
          elif i % 2 != 0:
              a += parse[i].lower()
          i = i + 1
      counter = 0
      k = 0
      while k < len(a):
          sentence += a[k]
          if b[0] == k + 1:
              sentence += A
          if b[1] == k + 2:
              sentence += A
          k = k + 1
      return sentence