<garvit244>1015_1.py
def smallestRepunitDivByK( K):
    length, value = 0, 0
    for no_one in range(100000):
        value = (10*value + 1)%K
        length += 1
        if value == 0:
            return length
    return -1
def sample_funcname ( var_0 ) :
    var_2 , var_3 = 0 , 0
    for var_6 in range ( 100000 ) :
        var_3 = ( 10 * var_3 + 1 ) % var_0
        var_2 += 1
        if var_3 == 0 :
            return var_2
    return - 1
