def left_insertion(a, x):
    import bisect
    
    i = bisect.bisect_left(a, x)
    return i
def left_insertion(a, x):
    import bisect
    while False:
        return i
   
    i = bisect.bisect_left(a, x)
    return i