#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 5, inf = 1e9 + 7;
long long n, m, i, j, A[N], B[N];
string s, t;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long i, j, a, b, ans = 0, c = 1;
  cin >> s >> t;
  n = max((long long)s.size(), (long long)t.size());
  for (i = 0; i < (long long)s.size(); i++)
    A[i + n - (long long)s.size()] = s[i] - '0';
  for (i = 0; i < (long long)t.size(); i++)
    B[i + n - (long long)t.size()] = t[i] - '0';
  for (i = 0; i < n; i++) {
    a = min(A[i], B[i]);
    A[i] -= a;
    B[i] -= a;
    if (A[i] != B[i]) {
      if (A[i] > B[i]) {
        if (-A[i + 1] + B[i + 1] != 1 || A[i + 2] - B[i + 2] > 0)
          return cout << '>', 0;
        B[i + 1]--;
        A[i + 2]++;
      } else {
        if (A[i + 1] - B[i + 1] != 1 || B[i + 2] - A[i + 2] > 0)
          return cout << '<', 0;
        A[i + 1]--;
        B[i + 2]++;
      }
    }
  }
  if (A[i] > B[i])
    cout << '>';
  else if (B[i] > A[i])
    cout << '<';
  else
    cout << '=';
}
