# include <stdio.h>

int fuzzyStrcmp(char s[], char t[]){
	//関数の中だけを書き換えてください
	//同じとき１を返す，異なるとき０を返す
	 int i = 0;
    char cs, ct;

    while(s[i] != '\0' && t[i] != '\0'){
        cs = s[i];
        ct = t[i];
if(cs >= 'A' && cs <= 'Z'){
            cs = cs + ('a' - 'A');
        }
        if(ct >= 'A' && ct <= 'Z'){
            ct = ct + ('a' - 'A');
        }

        if(cs != ct){
            return 0;
        }

        i++;
    }
     if(s[i] != t[i]){
        return 0;
    }
    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;
}
