#include <bits/stdc++.h>
using namespace std;
const int N = 100 * 1001;
string s1, s2;
int val;
bool change;
char c1[N], c2[N];
int main() {
  cin >> s1 >> s2;
  if (s1.size() < s2.size()) {
    change = true;
    string t = s1;
    s1 = s2;
    s2 = t;
  }
  for (int i = 0; i < s1.size(); i++) c1[i] = s1[i];
  for (int i = 0; i < s1.size() - s2.size(); i++) c2[i] = '0';
  for (int i = s1.size() - s2.size(); i < s1.size(); i++)
    c2[i] = s2[i - s1.size() + s2.size()];
  for (int i = 0; i < s1.size() + 2; i++) {
    if (c1[i] != c2[i]) {
      if (c1[i] == '1') {
        if (c2[i + 1] != '1' || (c2[i + 1] == c1[i + 1])) {
          val = 1;
          break;
        } else {
          if (c1[i + 2] == '1') {
            if (c2[i + 2] == '1') {
              c2[i + 2] = '0';
              c2[i + 1] = '0';
            } else {
              val = 1;
              break;
            }
          } else {
            c1[i + 2] = '1', c2[i + 1] = '0';
          }
        }
      } else {
        if (c1[i + 1] != '1' || (c2[i + 1] == c1[i + 1])) {
          val = -1;
          break;
        } else {
          if (c2[i + 2] == '1') {
            if (c1[i + 2] == '1') {
              c1[i + 2] = '0';
              c1[i + 1] = '0';
            } else {
              val = -1;
              break;
            }
          } else {
            c2[i + 2] = '1', c1[i + 1] = '0';
          }
        }
      }
    }
  }
  if (val == 1) {
    if (change)
      cout << "<\n";
    else
      cout << ">\n";
  } else if (val == -1) {
    if (change)
      cout << ">\n";
    else
      cout << "<\n";
  } else
    cout << "=\n";
}
