from collections import * from itertools import * from functools import * from heapq import * import sys,math input = sys.stdin.readline N = int(input()) X = [] while N !=1: if N%2==0: X.append('/') N //= 2 continue if (3*N+1)%4==0: X.append('+') N = 3*N+1 else: X.append('-') N = 3*N-1 print(len(X)) print(''.join(X))