def parse_squares(input_squares):
    """Parse squares from the input_squares.

    Returns dict with keys being id of square and value list of str with
    square contents"""
    squares = {}
    for square in input_squares:
        if square:
            lines = [line.strip() for line in square.split('\n')]
            squares[int(lines[0].split()[1][:-1])] = [line.strip()
                                                      for line in lines[1:]]
    return squares