def main(): N = int(input()) operations = "" while N % 2 == 0: operations += "/" N //= 2 if N == 1: print(len(operations)) print(operations) return # m=2n+1 # 3m+1 6n+3+1=6n+4 # 3n+2 # m=2n+1 # 3m-1 6n+3-1=6n+2 # 3n+1 while N > 1: if (N // 2) % 2 == 0: operations += "+/" N = 3 * (N // 2) + 2 else: operations += "-/" N = 3 * (N // 2) + 1 while N % 2 == 0: operations += "/" N //= 2 print(len(operations)) print(operations) if __name__ == "__main__": main()