#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int dp1[N];
int dp2[N];
int main() {
  char str1[N], str2[N];
  scanf("%s%s", str1, str2);
  for (int i = strlen(str1) - 1; i >= 0; i--) {
    dp1[strlen(str1) - i - 1] = str1[i] - '0';
  }
  for (int i = strlen(str2) - 1; i >= 0; i--) {
    dp2[strlen(str2) - i - 1] = str2[i] - '0';
  }
  for (int i = N; i >= 0; i--) {
    for (int j = i; dp1[j] && dp1[j + 1]; j += 2) {
      dp1[j] = 0;
      dp1[j + 1] = 0;
      dp1[j + 2] = 1;
    }
    for (int j = i; dp2[j] && dp2[j + 1]; j += 2) {
      dp2[j] = 0;
      dp2[j + 1] = 0;
      dp2[j + 2] = 1;
    }
  }
  for (int i = N; i >= 0; i--) {
    if (dp1[i] > dp2[i]) {
      puts(">");
      return 0;
    }
    if (dp1[i] < dp2[i]) {
      puts("<");
      return 0;
    }
  }
  puts("=");
  return 0;
}
