import random

with open("data.txt") as f:
    lines = f.readlines()

blurred_phone_numbers = []

for line in lines:
    data = line.strip("\n")
    if len(data) == 11:
        blurred_phone_numbers.append(data[:3] + "****" + data[7:])
    else:
        blurred_phone_numbers.append("***" + data[-3:])

print("入库号码:")
for number in blurred_phone_numbers:
    print(number)

print("")
print("")
print("中奖号码:")
print(random.sample(blurred_phone_numbers, 1))