Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Math;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            A();
        }

        static void A()
        {
            Println(Ceiling((double)ReadLong() / (new List<long>
            {
                ReadLong(),
                ReadLong(),
                ReadLong(),
                ReadLong(),
                ReadLong(),
            }.Min())) + 4);
        }

        static IEnumerable<int> Range(int start, int stop)
        {
            if (start < 0 || stop < 0 || start > stop || (start <= 0 && stop <= 0))
                return new List<int>();

            return Enumerable.Range(start, stop - start);
        }

        static bool IsDigit(string str)
        {
            var i = 0;
            return int.TryParse(str, out i);
        }

        static int DigitsSum(long num)
        {
            return num.ToString().Select(x => x.ToString()).Sum(int.Parse);
        }

        static int[] ToIntArray(string str)
        {
            return str.Select(x => x.ToString()).Select(int.Parse).ToArray();
        }

        static int Gcd(int a, int b) => b == 0 ? a : Gcd(b, a % b);

        static bool IsPrime(int x)
        {
            if (x <= 1 || (x != 2 && x % 2 == 0)) return false;
            if (x == 2) return true;

            for (int i = 3; i < x; i += 2)
                if (x % i == 0) return false;

            return true;
        }

        static string Read() => Console.ReadLine();
        static int ReadInt() => int.Parse(Read());
        static long ReadLong() => long.Parse(Read());

        static List<string> ReadSplit() => Read().Split().ToList();
        static List<int> ReadSplitInt() => Read().Split().Select(int.Parse).ToList();
        static List<long> ReadSplitLong() => Read().Split().Select(long.Parse).ToList();

        static void Print(object value) => Console.Write(value.ToString());
        static void Println(object value) => Console.WriteLine(value.ToString());

        static string Join<T>(IEnumerable<T> list) => string.Join("", list);
    }

    public static class MyExtensions
    {
        public static string Slice(this string str, int start = 0, int stop = 0)
        {
            if (start > str.Length || stop > str.Length || start < 0 || stop < 0)
                return "";

            if (stop == 0) stop = str.Length;
            return str.Substring(start, stop - start);
        }
    }
}



Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'static'
    4 | using static System.Math;
      |       ^~~~~~
a.cc:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:16: error: 'IEnumerable' does not name a type
   27 |         static IEnumerable<int> Range(int start, int stop)
      |                ^~~~~~~~~~~
a.cc:35:29: error: 'string' has not been declared
   35 |         static bool IsDigit(string str)
      |                             ^~~~~~
a.cc:46:19: error: expected unqualified-id before '[' token
   46 |         static int[] ToIntArray(string str)
      |                   ^
a.cc:51:41: error: invalid pure specifier (only '= 0' is allowed) before 'b'
   51 |         static int Gcd(int a, int b) => b == 0 ? a : Gcd(b, a % b);
      |                                         ^
a.cc:51:20: error: initializer specified for static member function 'static int ConsoleApp1::Program::Gcd(int, int)'
   51 |         static int Gcd(int a, int b) => b == 0 ? a : Gcd(b, a % b);
      |                    ^~~
a.cc:64:16: error: 'string' does not name a type
   64 |         static string Read() => Console.ReadLine();
      |                ^~~~~~
a.cc:65:33: error: invalid pure specifier (only '= 0' is allowed) before 'int'
   65 |         static int ReadInt() => int.Parse(Read());
      |                                 ^~~
a.cc:65:20: error: initializer specified for static member function 'static int ConsoleApp1::Program::ReadInt()'
   65 |         static int ReadInt() => int.Parse(Read());
      |                    ^~~~~~~
a.cc:66:35: error: invalid pure specifier (only '= 0' is allowed) before 'long'
   66 |         static long ReadLong() => long.Parse(Read());
      |                                   ^~~~
a.cc:66:21: error: initializer specified for static member function 'static long int ConsoleApp1::Program::ReadLong()'
   66 |         static long ReadLong() => long.Parse(Read());
      |                     ^~~~~~~~
a.cc:68:16: error: 'List' does not name a type
   68 |         static List<string> ReadSplit() => Read().Split().ToList();
      |                ^~~~
a.cc:69:16: error: 'List' does not name a type
   69 |         static List<int> ReadSplitInt() => Read().Split().Select(int.Parse).ToList();
      |                ^~~~
a.cc:70:16: error: 'List' does not name a type
   70 |         static List<long> ReadSplitLong() => Read().Split().Select(long.Parse).ToList();
      |                ^~~~
a.cc:72:27: error: 'object' has not been declared
   72 |         static void Print(object value) => Console.Write(value.ToString());
      |                           ^~~~~~
a.cc:72:44: error: invalid pure specifier (only '= 0' is allowed) before 'Console'
   72 |         static void Print(object value) => Console.Write(value.ToString());
      |                                            ^~~~~~~
a.cc:72:21: error: initializer specified for static member function 'static void ConsoleApp1::Program::Print(int)'
   72 |         static void Print(object value) => Console.Write(value.ToString());
      |                     ^~~~~
a.cc:73:29: error: 'object' has not been declared
   73 |         static void Println(object value) => Console.WriteLine(value.ToString());
      |                             ^~~~~~
a.cc:73:46: error: invalid pure specifier (only '= 0' is allowed) before 'Console'
   73 |         static void Println(object value) => Console.WriteLine(value.ToString());
      |                                              ^~~~~~~
a.cc:73:21: error: initializer specified for static member function 'static void ConsoleApp1::Program::Println(int)'
   73 |         static void Println(object value) => Console.WriteLine(value.ToString());
      |                     ^~~~~~~
a.cc:75:16: error: 'string' does not name a type
   75 |         static string Join<T>(IEnumerable<T> list) => string.Join("", list);
      |                ^~~~~~
a.cc:76:6: error: expected ';' after class definition
   76 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp1::Program::A()':
a.cc:17:55: error: 'List' does not name a type
   17 |             Println(Ceiling((double)ReadLong() / (new List<long>
      |                                                       ^~~~
a.cc:17:60: error: expected primary-expression before 'long'
   17 |             Println(Ceiling((double)ReadLong() / (new List<long>
      |                                                            ^~~~
a.cc:17:60: error: expected ')' before 'long'
a.cc:17:50: note: to match this '('
   17 |             Println(Ceiling((double)ReadLong() / (new List<long>
      |                                                  ^
a.cc:17:21: error: 'Ceiling' was not declared in this scope
   17 |             Println(Ceiling((double)ReadLong() / (new List<long>
      |                     ^~~~~~~
a.cc: In static member function 'static bool ConsoleApp1::Program::IsDigit(int)':
a.cc:37:13: error: 'var' was not declared in this scope
   37 |             var i = 0;
      |             ^~~
a.cc:38:20: error: expected primary-expression before 'int'
   38 |             return int.TryParse(str, out i);
      |                    ^~~
a.cc:38:20: error: expected ';' before 'int'
a.cc:38:23: error: expected unqualified-id before '.' token
   38 |             return int.TryParse(str, out i);
      |                       ^
a.cc: In static member function 'static int ConsoleApp1::Program::DigitsSum(long int)':
a.cc:43:24: error: request for member 'ToString' in 'num', which is of non-class type 'long int'
   43 |             return num.ToString().Select(x => x.ToString()).Sum(int.Parse);
      |                        ^~~~~~~~
a.cc:43:42: error: 'x' was not declared in this scope
   43 |             return num.ToString().Select(x => x.ToString()).Sum(int.Parse);
      |                                          ^
a.cc:43:45: error: expected primary-expression before '>' token
   43 |             return num.ToString().Select(x => x.ToString()).Sum(int.Parse);
      |                                             ^
a.cc:43:65: error: expected primary-expression before 'int'
   43 |             return num.ToString().Select(x => x.ToString()).Sum(int.Parse);
      |                                                                 ^~~
a.cc: At global scope:
a.cc:78:5: error: expected unqualified-id before 'public'
   78 |     public static class MyExtensions
      |     ^~~~~~