using System;
using System.IO;
using System.Text;
using System.Collections.Generic;


class votreAlgo
{
// -----  Fonction mère (normalement il n'y a pas à modifier le début)  ------

    static void Main(string[] args)
    {
        List<int> tab = new List<int>();
        int nargs = args.Length;
        bool verbose = true;
        String filename = "";

        if (nargs == 0)
        {
            System.Console.WriteLine("Ce programme nécessite un fichier en argument.");
            System.Environment.Exit(1);
        }
        else if (nargs >= 2 && String.Equals(args[0],"--mute"))
        {
            filename = args[1];
            verbose = false;
        }
        else
        {
            filename = args[0];
        }


        // Read the file and display it line by line.
        foreach (string line in System.IO.File.ReadLines(@filename))
        {
            tab.Add(int.Parse(line));
        }

        if (verbose)
        {
            System.Console.WriteLine("Input:");
            foreach(int val in tab)
            {
                System.Console.WriteLine(val);
            }
        }

        int result = fctAlgo( tab );

        if (verbose)
        {
            System.Console.WriteLine("Output:");
            System.Console.WriteLine(result);
        }

        return;
    }




//  -----------------------   Votre algorithme   ------------------------------

//  L'argument l contient une liste d'entiers de taille n



    static int fctAlgo(List<int> l)
    {
        /*
            À vous de jouer!
        */
        System.Console.WriteLine("Pour l'instant l'algorithme ne fait pas grand chose...");
        System.Console.WriteLine("... mais il est super rapide!");

        return 42;
    }


}