def add(*items):
    """Adds one or more vectors."""
    if len(items) == 0: return 0
    n = len(items[0])
    for v in items:
        if n!=len(v):
            raise RuntimeError('Vector dimensions not equal')
    return [sum([v[i] for v in items]) for i in range(n)]