import ast
def calculate(number, operator):
for i in range(1, 11): print(ast.literal_eval(number + operator + str(i)))
inputs = list(input().split())
switch = {
'1': '+',
'2': '*',
'3': '/',
'4': '-',
}
calculate(inputs[0], switch[inputs[1]])
aW1wb3J0IGFzdAoKZGVmIGNhbGN1bGF0ZShudW1iZXIsIG9wZXJhdG9yKToKICAgIGZvciBpIGluIHJhbmdlKDEsIDExKTogcHJpbnQoYXN0LmxpdGVyYWxfZXZhbChudW1iZXIgKyBvcGVyYXRvciArIHN0cihpKSkpCgoKaW5wdXRzID0gbGlzdChpbnB1dCgpLnNwbGl0KCkpCgpzd2l0Y2ggPSB7IAogICAgJzEnOiAnKycsCiAgICAnMic6ICcqJywKICAgICczJzogJy8nLAogICAgJzQnOiAnLScsCn0KCmNhbGN1bGF0ZShpbnB1dHNbMF0sIHN3aXRjaFtpbnB1dHNbMV1dKSA=