#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, a;
  cin >> n >> a;
  for (int i = 1; i < 5; i++) {
    long b;
    cin >> b;
    a = min(a, b);
  }
  cout << 5 + (n - 1) / a << endl;
  return 0;
}
