#include <bits/stdc++.h>
using namespace std;
int sign(int x) {
  if (x > 0) {
    return 1;
  } else if (x < 0) {
    return -1;
  } else {
    return 0;
  }
}
int strcmpx(string& a, string& b) {
  int n = a.size();
  for (int i = 0; i + 2 < n; ++i) {
    if (a[i] != b[i]) {
      if (abs(a[i] - b[i]) >= 2) {
        return sign(a[i] - b[i]);
      } else {
        if (a[i] > b[i]) {
          ++a[i + 1];
          ++a[i + 2];
        } else {
          ++b[i + 1];
          ++b[i + 2];
        }
      }
    }
  }
  string at = a.substr(max(0, n - 2), min(2, n));
  string bt = b.substr(max(0, n - 2), min(2, n));
  return strcmp(at.c_str(), bt.c_str());
}
int main() {
  string a, b;
  cin >> a >> b;
  int n = a.size();
  int m = b.size();
  if (n < m) {
    a = string(m - n, '0') + a;
  } else if (n > m) {
    b = string(n - m, '0') + b;
  }
  int r = strcmpx(a, b);
  char c = '=';
  if (r > 0) {
    c = '>';
  } else if (r < 0) {
    c = '<';
  }
  cout << c << endl;
  return 0;
}
