import random as r
a, n = map(int,input().split())
r.seed(a)
for i in range(n):
x = r.randint(1,9)
y = r.randint(1,9)
print('{}+{}='.format(x,y))
import random as r
a, n = map(int,input().split())
r.seed(a)
for i in range(n):
x = r.randint(1,9)
y = r.randint(1,9)
print('{}+{}='.format(x,y))