N = int(input()) ans = [] # コラッツ予想 while N > 1: if N % 2 == 0: N //= 2 ans.append("/") else: N = 3 * N + 1 ans.append("+") print(len(ans)) print("".join(ans))