import math
def solution(progresses, speeds):
answer = []
p = []
tmp = []
for i in progresses:
p.append(math.ceil((100 - i) / speeds.pop(0)))
tmp.append(p.pop(0))
for i in p:
if i <= tmp[0]:
tmp.append(i)
else:
answer.append(len(tmp))
tmp = []
tmp.append(i)
answer.append(len(tmp))
return answer