import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random #sys.setrecursionlimit(10**9) #n = int(input()) # #alist = [] #s = input() n = int(input()) m = n check = [] ans = 0 while m != 1: ans += 1 if m % 2 == 0: m //= 2 check.append('/') else: m = 3 * m + 1 check.append('+') print(ans) print(''.join(check))