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