import java.io.*; import java.util.*; public class SlimeRace { private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static StringTokenizer st; private static int readInt() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return Integer.parseInt(st.nextToken()); } public static void main(String[] args) throws IOException { int N = readInt(); int D = readInt(); for (int i = 0; i < N; i++) { readInt(); } long speedSum = 0; for (int i = 0; i < N; i++) { speedSum += readInt(); } System.out.println((D + N - 1) / speedSum); } }