#include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
vector<int> fun(string s) {
  vector<int> aux;
  for (int i = 0; i < s.length(); ++i) {
    int d = s.length() - 1 - i;
    if ((int)(s[i] - '0')) {
      while (!aux.empty() && aux.back() == (d + 1)) {
        aux.pop_back();
        d += 2;
      }
      aux.push_back(d);
    }
  }
  return aux;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string x, y;
  cin >> x;
  cin >> y;
  vector<int> a = fun(x);
  vector<int> b = fun(y);
  if (a == b)
    cout << "=";
  else if (a < b)
    cout << "<";
  else
    cout << ">";
}
