def rotate_left(list1, m, n):
    if not list1:
        return list1
    if n <= 0:
        return list1[:]
    n %= len(list1)
    return list1[n:] + list1[:n]