#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  cerr << name << " : " << arg1 << std::endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
const int N = int(1e5) + 10;
int A[N], B[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string a, b;
  cin >> a >> b;
  for (int i = (int)0; i < (int)(int)(a.size()); i++) {
    if (a[i] == '1') A[(int)(a.size()) - 1 - i] = 1;
  }
  for (int i = (int)0; i < (int)(int)(b.size()); i++) {
    if (b[i] == '1') B[(int)(b.size()) - 1 - i] = 1;
  }
  for (int i = (int)0; i < (int)min((int)(a.size()), (int)(b.size())); i++)
    if (A[i] & B[i]) A[i] = B[i] = 0;
  for (int i = (int)0; i < (int)(int)(a.size()); i++) {
    if (A[i] >= 1 && A[1 + i] >= 1 && !A[i + 2]) A[i]--, A[i + 1]--, A[i + 2]++;
  }
  for (int i = (int)0; i < (int)(int)(b.size()); i++) {
    if (B[i] >= 1 && B[1 + i] >= 1 && !B[i + 2]) B[i]--, B[i + 1]--, B[i + 2]++;
  }
  for (int i = max((int)(a.size()), (int)(b.size())); i >= 0; i--) {
    if (A[i] > B[i]) {
      cout << ">" << endl;
      return 0;
    } else if (A[i] < B[i]) {
      cout << "<" << endl;
      return 0;
    }
  }
  cout << "=" << endl;
  return 0;
}
