#include <bits/stdc++.h>
using namespace std;
int main() {
  static char data[100015];
  static int a[100015];
  static int b[100015];
  memset(a, 0, sizeof(a));
  memset(b, 0, sizeof(b));
  int i, j, N, len;
  N = 0;
  scanf("%s\n", data);
  len = strlen(data);
  if (len > N) N = len;
  for (i = 0; i < len; i++) {
    a[len - i - 1] = (int)(data[i] - '0');
  }
  scanf("%s", data);
  len = strlen(data);
  if (len > N) N = len;
  for (i = 0; i < len; i++) {
    b[len - i - 1] = (int)(data[i] - '0');
  }
  N += 5;
  for (i = N; i >= 0; i--) {
    j = i;
    while ((a[j]) && (a[j + 1])) {
      a[j] = 0;
      a[j + 1] = 0;
      a[j + 2] = 1;
      j += 2;
    }
    j = i;
    while ((b[j]) && (b[j + 1])) {
      b[j] = 0;
      b[j + 1] = 0;
      b[j + 2] = 1;
      j += 2;
    }
  }
  i = N;
  while ((i >= 0) && (a[i] == b[i])) i--;
  if (i < 0)
    printf("=");
  else if (a[i] > b[i])
    printf(">");
  else
    printf("<");
  printf("\n");
  return 0;
}
