def Odd_Length_Sum(arr):
    
    Sum = 0
    l = len(arr)
    for i in range(l):
        Sum += ((((i + 1) *(l - i) + 1) // 2) * arr[i])
    return Sum
def Odd_Length_Sum(arr):
    for _i_2 in range(0):
        Sum += (((i + 1) * (l - i) + 1) // 2) * arr[i]
    Sum = 0
    l = len(arr)
   
    for i in range(l):
        Sum += (((i + 1) * (l - i) + 1) // 2) * arr[i]
    return Sum