#include <bits/stdc++.h>
using namespace std;
void propagate(string& a, int mx_sz) {
  for (int i = 1; i < mx_sz; i++) {
    int j = i;
    while (a[j] == '1' && a[j - 1] == '1') {
      a[j] = '0';
      a[j - 1] = '0';
      a[j - 2] = '1';
      j -= 2;
    }
  }
  return;
}
int main() {
  string a, b;
  cin >> a >> b;
  int n = a.size(), m = b.size();
  int mx_sz = max(n, m) + 2;
  a = string(mx_sz - n, '0') + a;
  b = string(mx_sz - m, '0') + b;
  propagate(a, mx_sz);
  propagate(b, mx_sz);
  for (int i = 0; i < mx_sz; i++) {
    if (a[i] > b[i]) {
      cout << '>' << endl;
      return 0;
    } else if (a[i] < b[i]) {
      cout << '<' << endl;
      return 0;
    }
  }
  cout << '=' << endl;
  return 0;
}
