def dsf(s):
a = bin(s)
s = a[2:]
l = len(s)
first = True
for i in s:
l -= 1
if i == '1':
if not first:
print('+', end='')
first = False
if l == 0:
print('2(0)', end='')
elif l == 1:
print('2', end='')
else:
print('2(', end='')
dsf(l)
print(')', end='')
s = int(input())
dsf(s)

京公网安备 11010502036488号