在演唱会中尽量穿插更多的笑话,演唱会的总时长为d,每两首歌的休息10分钟可以讲2个故事,再减去总歌长,除以5,则为除休息时间之外的笑话次数。
n,d = map(int,raw_input().split())
t = map(int,raw_input().split())
total_t = sum(t)
current_joke = 10*(n-1)
current = total_t + current_joke
left = (d - current)/5
if left >= 0:
print left + (n-1)*2
else:
print -1