from random import randint
a = [1, 2, 3, 4, 1, 1, 1, 1, 1]
b = []
for value in a:
while value in b:
value = randint(1, 11)
b.append(value)
print b
ZnJvbSByYW5kb20gaW1wb3J0IHJhbmRpbnQKCmEgPSBbMSwgMiwgMywgNCwgMSwgMSwgMSwgMSwgMV0KYiA9IFtdCgpmb3IgdmFsdWUgaW4gYToKICAgIHdoaWxlIHZhbHVlIGluIGI6CiAgICAgICAgdmFsdWUgPSByYW5kaW50KDEsIDExKQogICAgYi5hcHBlbmQodmFsdWUpCgpwcmludCBi