def main(): n = int(input()) s = "" while n > 1: if n % 2 == 0: s += '/' n //= 2 else: s += '+' n = 3 * n + 1 print(len(s)) print(s) if __name__ == "__main__": main()