#include <bits/stdc++.h>
using namespace std;
int main() {
  string x, y;
  cin >> x >> y;
  x = x + "00";
  y = y + "00";
  reverse(x.begin(), x.end());
  reverse(y.begin(), y.end());
  if (x.size() < y.size()) x = x + string(y.size() - x.size(), '0');
  y = y + string(x.size() - y.size(), '0');
  for (int i = x.size() - 1; i >= 2; i--) {
    if (x[i] == y[i]) continue;
    int mn = min(x[i] - '0', y[i] - '0');
    x[i] -= mn, y[i] -= mn;
    if (x[i] >= '2') return puts(">");
    if (y[i] >= '2') return puts("<");
    if (x[i] == '1') x[i - 1]++, x[i - 2]++;
    if (y[i] == '1') y[i - 1]++, y[i - 2]++;
  }
  if (x[1] != y[1]) {
    if (x[1] > y[1])
      puts(">");
    else
      puts("<");
  } else if (x[0] != y[0]) {
    if (x[0] > y[0])
      puts(">");
    else
      puts("<");
  } else
    puts("=");
}
