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