def main(): n, d = map(int, input().split()) _ = list(map(int, input().split())) v = list(map(int, input().split())) v_total = sum(v) ans = (d + v_total - 1) // v_total print(ans) if __name__ == "__main__": main()