#include <bits/stdc++.h>
const double Pi = acos(-1.0);
using namespace std;
string a, b;
void sw(string &s, int x) {
  s[x] = '1';
  s[x + 1] = '0';
  s[x + 2] = '0';
  if (x > 1 && s[x - 1] == '1') sw(s, x - 2);
}
void transform(string &s) {
  int N = s.size();
  s.insert(0, "0");
  for (int i = 0; i < s.size() - 1; ++i)
    if (s[i] == '1' && s[i + 1] == '1') sw(s, i - 1);
  int ind = 0;
  while (s[ind] == '0') ++ind;
  s = s.substr(ind, N - ind + 1);
}
int main(int argc, char **argv) {
  cin >> a >> b;
  transform(a);
  transform(b);
  cout << (a.size() > b.size()
               ? ">"
               : (a.size() < b.size() ? "<"
                                      : (a < b ? "<" : (a > b ? ">" : "="))))
       << "\n";
  return 0;
}
