def factorsum(n):
ls = []
for i in range(1, n):
if n % i == 0:
ls.append(i)
if sum(ls) == n:
ls2 = [str(i) for i in ls]
return ls2
else:
return False
n = int(input())
i,count = 1,1
while count <= n:
if factorsum(i):
print('{}={}'.format(i,'+'.join(factorsum(i))))
count = count + 1
i = i+ 1