def METHOD_NAME(movement: str, step: int):
    if step % len(movement) != 0:
        raise ScriptError('Invalid movement')
    movement = movement * int(step / len(movement))
    dx, dy = 0, 0
    for direction in movement:
        dx += 1 if direction == 'R' else 0
        dx -= 1 if direction == 'L' else 0
        dy += 1 if direction == 'D' else 0
        dy -= 1 if direction == 'U' else 0
    return dx, dy