N = int(input()) ops = "" while N > 1: if N % 2 == 0: ops += "/" N //= 2 else: ops += "+" N = 3 * N + 1 print(len(ops)) print(ops)