import re


def parse_pos_line(cell_line):
    """
    Parse single line in the cell block.
    Return element, coorindates and a dictionary of tags
    """

    cell_line = cell_line.strip()
    s = re.split(r"[\s]+", cell_line, maxsplit=4)
    if len(s) < 4:
        raise ValueError("Cannot understand line: {}".format(cell_line))
    if len(s) == 5:
        tags = s[-1]
    else:
        tags = ""

    elem = s[0].capitalize()
    coor = list(map(float, s[1:4]))

    return elem, coor, tags