import random element, repeat = input().split() numbers = [] for ele in int(element): numbers.append(int(ele)) def add_number(choice, num): return num + choice for re in int(repeat): choice_number = random.choice(numbers) numbers = map(add_number(choice_number, numbers)) print(''.join(numbers))