# include <stdio.h>

int fuzzyStrcmp(char s[], char t[]){

    int i = 0;
    while (s[i] != '\0' || t[i] != '\0') {
        char c1 = s[i];
        char c2 = t[i];

        if (c1 >= 'A' && c1 <= 'Z') {
            c1 = c1 + ('a' - 'A');
        }

        if (c2 >= 'A' && c2 <= 'Z') {
            c2 = c2 + ('a' - 'A');
        }

        if (c1 != c2) {
            return 0;
        }
        i++;
    }
    return 1;
}

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;
}