A stick is balanced horizontally on a support. Will it topple over or stay balanced? (This is a physics problem: imagine a real wooden stick balanced horizontally on someone's finger or on a narrow table, for example). 
The stick is represented as a list, where each entry shows the mass in that part of the stick.
The stick is balanced on a support. The "terrain" is represented by a list of 1s and 0s, where the 1s represent the support and the 0s represent empty space. Each index is a coordinate on the x-axis, so e.g. the physical interpretations of some terrains are as follows:
![](https://i.imgur.com/P4MpHZV.png)
The stick will only balance if its centre of mass is directly above some part of its support. Return `True` if the stick will balance and `False` if it will topple.
Both lists will be of equal length (that is, the stick and the terrain have equal width so that each index of the stick is directly above the corresponding index of the terrain). Every terrain will contain one, and only one, support.
## Examples:
![](https://i.imgur.com/PyMBsAl.png)
```
[2,3,2]
[0,1,0] ---> Perfectly balanced, return True
[5,1,1]
[0,1,0] ---> will topple to the left, return False
[3,3,4]
[0,1,0] ---> will topple to the right (but only just)
[7,1,1,1,1,1,1,1]
[0,1,1,0,0,0,0,0] ---> will balance, perfectly, without a doubt
[5, 3, 2, 8, 6]
[0, 0, 0, 1, 1] ---> will topple to the left
```
will_it_balance=lambda a,s:s.index(1)<=sum(i*a[i]for i in range(len(a)))/sum(a)<=len(s)-s[::-1].index(1)-1
will_it_balance=lambda a,s:s.index(1)<=sum(i*a[i]for i in range(len(a)))/sum(a)<=len(s)-s[::-1].index(1)-1