
def _init(n, m):
    ret = []
    for i in xrange(n):
        if i < m:
            ret.append(1)
        else:
            ret.append(0)

    return ret

def main(n, m):
    a = _init(n, m)
    print a
    
if __name__ == '__main__':
    main(10, 3)

