#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9 + 7;
const int N = (int)2e5 + 20;
const int M = 5001;
int a[2][N];
int main() {
  string s[2];
  cin >> s[0] >> s[1];
  for (int i = 0; i < 2; ++i) {
    for (int j = (int)s[i].size() - 1; j >= 0; --j) {
      a[i][(int)s[i].size() - 1 - j] = s[i][j] - '0';
    }
  }
  for (int i = 0; i < 2; ++i) {
    for (int j = N - 20; j >= 0; --j) {
      if (a[i][j] == 1 && a[i][j + 1] == 1) {
        a[i][j]--;
        a[i][j + 1]--;
        a[i][j + 2]++;
        j += 3;
      }
    }
  }
  for (int i = N - 1; i >= 0; i--) {
    if (a[0][i] > a[1][i]) {
      cout << '>';
      return 0;
    }
    if (a[1][i] > a[0][i]) {
      cout << '<';
      return 0;
    }
  }
  cout << '=';
  return 0;
}
