#include<bits/stdc++.h>
using namespace std;
int main(){
int64_t N,A,B,C,D,E;
  cin>>N>>A>>B>>C>>D>>E;
  int64_t Min=min(min(min(A,B),C),min(D,E));
  int64_t ans=((N-1)/Min)+5;
  cout<<ans<<endl;
   return 0;
}