#include <bits/stdc++.h>
char a[100010], b[100010];
int main() {
  int i;
  char *pa, *pb;
  int max;
  while (scanf("%s%s", &a[2], &b[2]) != EOF) {
    pa = pb = "0";
    a[0] = a[1] = b[0] = b[1] = '0';
    max = strlen(&a[2]);
    if (max < (int)strlen(&b[2])) max = strlen(b);
    for (i = 2; i <= max; i++) {
      if (a[i] == '1' && a[i + 1] == '1') {
        a[i - 1] = '1';
        a[i] = a[i + 1] = '0';
        i = i - 3;
      }
    }
    for (i = 2; i <= max; i++) {
      if (b[i] == '1' && b[i + 1] == '1') {
        b[i - 1] = '1';
        b[i] = b[i + 1] = '0';
        i = i - 3;
      }
    }
    for (i = 0; i <= max + 1; i++)
      if (a[i] == '1') {
        pa = &a[i];
        break;
      }
    for (i = 0; i <= max + 1; i++)
      if (b[i] == '1') {
        pb = &b[i];
        break;
      }
    if (strlen(pa) > strlen(pb))
      printf(">\n");
    else if (strlen(pa) < strlen(pb))
      printf("<\n");
    else {
      if (strcmp(pa, pb) > 0)
        printf(">\n");
      else if (strcmp(pa, pb) == 0)
        printf("=\n");
      else
        printf("<\n");
    }
  }
  return 0;
}
