# include <stdio.h>

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