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