#include <stdio.h>
#include <ctype.h>  // tolower関数を使うために必要

int fuzzyStrcmp(char s[], char t[]){
    int i = 0;
    while (s[i] != '\0' && t[i] != '\0') {
        if (tolower(s[i]) != tolower(t[i])) {
            return 0;  // 一文字でも違えば 0 を返す
        }
        i++;
    }
    // 両方の文字列が同時に終わっていれば同じ
    if (s[i] == '\0' && t[i] == '\0') {
        return 1;
    } else {
        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;
}