#include <bits/stdc++.h>
using namespace std;

int main(){
  long long n,a,b,c,d,e;
  cin>>n>>a>>b>>c>>d>>e;
  vector<long long>v={a,b,c,d,e};
  sort(v.begin(),v.end());
  cout<<(n+v[0]-1)/v[0]+4<<endl;
}  