import sys input = lambda :sys.stdin.readline()[:-1] def main(): N = int(input()) i = 0 ans = [] while i <= 10000 and N < 10 ** 18 and N != 1: if N % 2== 0: N //= 2 ans.append("/") else: N = 3 * N + 1 ans.append("+") i += 1 print(i) print(*ans, sep="") if __name__ == '__main__': main()