#include <bits/stdc++.h>
using namespace std;
void splat(char* S, int N) {
  if (N <= 1) return;
  int K = 0;
  if (N % 2) S[K++] = '1';
  S[K++] = '0';
  for (N /= 2; N; N--) {
    S[K++] = '0';
    S[K++] = '1';
  }
}
void fix(char* S) {
  int N = strlen(S);
  reverse(S, S + N);
  for (int i = (N); i <= (100010 - 1); ++i) S[i] = '0';
  for (int i = 0; i < N;) {
    int j = i;
    while (S[j] == '1') ++j;
    int len = j - i;
    splat(S + i, len);
    i = max(j, i + 1);
  }
}
char A[100010], B[100010];
int main() {
  scanf("%s%s", A, B);
  fix(A);
  fix(B);
  reverse(A, A + 100010);
  reverse(B, B + 100010);
  int s = strcmp(A, B);
  printf("%c\n", (s < 0 ? '<' : s > 0 ? '>' : '='));
  return 0;
}
