#include <bits/stdc++.h>
using namespace std;
string s, t;
string z(10, '0');
void adjust(string& ss) {
  int k = ss.length();
  for (int i = 0; i < k - 1; ++i) {
    if (ss[i] == '1' && ss[i + 1] == '1') {
      ss[i - 1] = ss[i - 1] - '0' + 1 + '0';
      ss[i] = ss[i + 1] = '0';
      i -= 3;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s >> t;
  s = z + s;
  t = z + t;
  adjust(s);
  adjust(t);
  int n = s.length();
  int m = t.length();
  int d = abs(n - m);
  string zz(d, '0');
  if (n > m)
    t = zz + t;
  else
    s = zz + s;
  int ans = 0;
  for (int i = 0; i < s.length(); ++i) {
    if (s[i] < t[i]) {
      ans = -1;
      break;
    } else if (s[i] > t[i]) {
      ans = 1;
      break;
    }
  }
  cout << (ans ? (ans > 0 ? '>' : '<') : '=') << endl;
  return 0;
}
