#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 1000;
int a1[MAX], a2[MAX];
int main() {
  string a, b;
  cin >> a >> b;
  for (int i = a.length() - 1; i >= 0; i--) a1[a.length() - i - 1] = a[i] - '0';
  for (int i = b.length() - 1; i >= 0; i--) a2[b.length() - i - 1] = b[i] - '0';
  for (int i = MAX - 10; i >= 0; i--) {
    for (int j = i; a1[j] && a1[j + 1]; j += 2)
      a1[j] = a1[j + 1] = 0, a1[j + 2] = 1;
    for (int j = i; a2[j] && a2[j + 1]; j += 2)
      a2[j] = a2[j + 1] = 0, a2[j + 2] = 1;
  }
  for (int i = MAX - 1; i >= 0; i--)
    if (a1[i] > a2[i])
      return cout << '>', 0;
    else if (a1[i] < a2[i])
      return cout << '<', 0;
  cout << '=';
}
