#include <bits/stdc++.h>
using namespace std;
const long long int inf = 0x3f3f3f3f3f3f3f3fll;
long long int power(long long int x, long long int y, long long int p) {
  long long int res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  string s1, s2;
  cin >> s1 >> s2;
  long long int i;
  long long int n1 = s1.length();
  long long int n2 = s2.length();
  reverse(s1.begin(), s1.end());
  reverse(s2.begin(), s2.end());
  string s(100003 - n1, '0');
  s1 += s;
  string _s(100003 - n2, '0');
  s2 += _s;
  for (i = 100002; i > 0; i--) {
    while (i < 100002 && s1[i] == '1' && s1[i - 1] == '1') {
      s1[i - 1] = s1[i] = '0', s1[i + 1] = '1', i += 2;
    }
  }
  for (i = 100002; i > 0; i--) {
    while (i < 100002 && s2[i] == '1' && s2[i - 1] == '1') {
      s2[i - 1] = s2[i] = '0', s2[i + 1] = '1', i += 2;
    }
  }
  reverse(s1.begin(), s1.end());
  reverse(s2.begin(), s2.end());
  if (s1 < s2) {
    cout << '<';
  } else if (s1 == s2) {
    cout << '=';
  } else {
    cout << '>';
  }
}
