N = int(input()) c = [] while N != 1: if N % 2 == 0: N //= 2 c.append('/') else: N = 3*N+1 c.append('+') print(len(c)) print(''.join(c))