import sys input = sys.stdin.readline N, D = map(int, input().split()) x = list(map(int, input().split())) v = list(map(int, input().split())) V = sum(v) print((D+V-1)//V)