# include <stdio.h>

int fuzzyStrcmp(char s[], char t[]){
	//関数の中だけを書き換えてください
	//同じとき１を返す，異なるとき０を返す
	    int i=0;
    int re = 1;
    while(1){
		if(s[i]!=t[i] && s[i]-32!=t[i] && s[i]+32!=t[i]){
			re = 0;
			break;
			
		}
		else if(s[i+1]=='\0' && t[i+1]!='\0'||s[i+1]!='\0' && t[i+1]=='\0'){
			re = 0;
        	break;
		}
		else if(s[i+1]=='\0' && t[i+1]=='\0'){
			break;
        }
        i++;
    }
    return re;
}
//メイン関数は書き換えなくてできます 
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;
}
