# include <stdio.h>

int fuzzyStrcmp(char s[], char t[]){
	int i;
	for(i=0;s[i] != '\0';i++){
        if('a' <= s[i] && s[i] <= 'z'){
            s[i] = s[i] - 32;
        }
	}
	
	for(i=0;t[i] != '\0';i++){
        if('a' <= t[i] && t[i] <= 'z'){
            t[i] = t[i] - 32;
        }
    }
    
    i=0;
    while(s[i] != '\0' || t[i] != '\0'){
    	if(s[i] != t[i]){
    		return 0;
    	}
    	i++;
    }
    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;
}
