#include <bits/stdc++.h>
using namespace std;
char s[1000005] = "00", o[10000005], *ans = o;
int main() {
  int n = strlen(gets(s + 2)), one = 0, cnt = 0;
  for (int i = n + 1; i; i--)
    if (s[i] == '1' - one) {
      one = s[i - 1] - '0';
      ans += sprintf(ans, "%c2^%d\n", one ? '-' : '+', n - i + 1);
      cnt++;
    }
  printf("%d\n%s", cnt, o);
}
