def lookandsay(number):
    result = 

    repeat = number[0]
    number = number[1:]+
    times = 1

    for actual in number:
        if actual != repeat:
            result += str(times)+repeat
            times = 1
            repeat = actual
        else:
            times += 1

    return result

num = 

for i in range(10):
    print num
    num = lookandsay(num)