#include <bits/stdc++.h>
using namespace std;
vector<int> a, b, c;
vector<int> read() {
  c.clear();
  string s;
  bool is = false;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '1') is = true;
    if (is) c.push_back(s[i] - '0');
  }
  if (is == false) c.push_back(0);
  vector<int> res;
  reverse(c.begin(), c.end());
  res.assign(c.size() + 1, 0);
  int n = c.size();
  for (int i = n - 1; i > 0; i--) {
    if (c[i] == 1 && c[i - 1] == 1) {
      res[i + 1] = 1;
      res[i] = 0;
      res[i - 1] = 0;
      c[i - 1] = 0;
      c[i] = 0;
      for (int j = i + 1; j < n - 1 && res[j] == res[j + 1] && res[j] == 1;
           j += 2)
        res[j] = 0, res[j + 1] = 0, res[j + 2] = 1;
    } else {
      res[i] = c[i];
    }
  }
  res[0] = c[0];
  reverse(res.begin(), res.end());
  c.clear();
  is = false;
  for (int i = 0; i < res.size(); i++) {
    if (res[i] == 1) is = true;
    if (is) c.push_back(res[i]);
  }
  if (is == false) c.push_back(0);
  return c;
}
int main() {
  a = read();
  b = read();
  if (a.size() > b.size()) {
    cout << ">";
    return 0;
  }
  if (b.size() > a.size()) {
    cout << "<";
    return 0;
  }
  if (a > b) cout << ">";
  if (a == b) cout << "=";
  if (a < b) cout << "<";
  return 0;
}
