#include <stdio.h>
#include <ctype.h>

int fuzzyStrcmp(char s[], char t[]){
    int i;
    for(i = 0; tolower(s[i]) == tolower(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);
    ans = fuzzyStrcmp(s, t);
    printf("%s = %s -> %d\n", s, t, ans);
    return 0;
}