""" 奇数は 1 -> 2 or 4 3 -> 8 or """ import sys from sys import stdin N = int(stdin.readline()) ans = [] s = set() while N != 1: s.add(N) if N % 2 == 0: ans.append("/") N //= 2 elif (3*N-1) % 2 == 0 and (3*N-1) not in s: ans.append("-") N = 3*N-1 else: ans.append("+") N = 3*N+1 print (len(ans)) print ("".join(ans))