def read_file(in_file):
    """
    Read Intput File

    Args:
        in_file: input file path
    
    Returns:
        Maximum number of slices allowed
        , Number of Pizza to be selected
        , List of number of slices of each pizza
    """
    max_slices = 0
    no_of_types = 0
    slices_list = []
    # Read the file into variables    
    with open(in_file, 'r') as infile:
        [max_slices, no_of_types] = [int(x) for x in infile.readline().strip().split(' ')]
        slices_list = [int(x) for x in infile.readline().strip().split(' ')]
    return max_slices, no_of_types, slices_list