N = $stdin.readline.to_i
A = $stdin.readline.to_i
B = $stdin.readline.to_i
C = $stdin.readline.to_i
D = $stdin.readline.to_i
E = $stdin.readline.to_i

capa = [A,B,C,D,E]
minCapa = capa.min

print (N+(minCapa-1)) / minCapa + 4
