# include <stdio.h>

int fuzzyStrcmp(char s[], char t[]){
	//関数の中だけを書き換えてください
	//同じとき１を返す，異なるとき０を返す
	int i;
    for(i = 0; ; i++){
        char char_s = s[i];
        char char_t = t[i];
        
        if('a' <= char_s && char_s <= 'z'){
            char_s = char_s - 32;
        }
        if('a' <= char_t && char_t <= 'z'){
            char_t = char_t - 32;
        }
        
        if(char_s != char_t){
            return 0;
        }
        
        if(char_s == '\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;
}
