# include <stdio.h>

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