#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
const long long INFL = LLONG_MAX;
const long double pi = acos(-1);
vector<int> normalize(string s) {
  vector<int> ret;
  for (int(i) = 0, j123 = int(s.size()); (i) < j123; (i)++) {
    int d = int(s.size()) - i - 1;
    int z = s[i] - '0';
    if (z > 0) {
      while (!ret.empty() && ret.back() == d + 1) {
        d += 2;
        ret.pop_back();
      }
      ret.push_back(d);
    }
  }
  return ret;
}
int main() {
  ios_base::sync_with_stdio(0);
  cout.precision(15);
  cout << fixed;
  cout.tie(0);
  string s, t;
  cin >> s >> t;
  vector<int> a = normalize(s), b = normalize(t);
  if (a == b)
    cout << '=' << '\n';
  else if (a < b)
    cout << '<' << '\n';
  else
    cout << '>' << '\n';
}
