#include<stdio.h>

int fuzzyStrcmp(char s[], char t[]){
    int i,j;
    for(i=0; s[i]!='\0'; i++){
        if('a' <= s[i] && s[i] <= 'z'){
            s[i] = s[i] - 32;
        }
    }
    for(j=0; t[j]!='\0'; j++){
        if('a' <= t[j] && t[j] <= 'z'){
            t[j] = t[j] - 32;
        }
    }
    for(i=0; s[i]==t[i]; i++){
        if(s[i]=='\0') return 1;
    }
    return 0;
}

int main(){
    int ans;
    char s[100];
    char t[100];
    scanf("%s %s",s,t);
    printf("%s = %s -> ",s,t);
    ans = fuzzyStrcmp(s,t);
    printf("%d\n",ans);
    return 0;
}