def read_i
  gets.chomp.split(' ').map(&:to_i)
end

n = read_i[0]

a = []
5.times do |i|
  a << read_i[0]
end

m = a.min

if n > m && (n % m) != 0
  puts (n / a.min) + 5
elsif n > m && (n % m) == 0
  puts (n / a.min) + 4
else
  puts 5
end
