# include <stdio.h>
# include <ctype.h>

int fuzzyStrcmp(char s[], char t[]){
	//関数の中だけを書き換えてください
	//同じとき１を返す，異なるとき０を返す
int i = 0;
    while (s[i] != '\0' && t[i] != '\0') {
        // 小文字に変換して比較
        if (tolower(s[i]) != tolower(t[i])) {
            return 0;  // 異なる文字があれば 0 を返す
        }
        i++;
    }
    // 文字列の長さが同じであれば 1、それ以外は 0
    return (s[i] == '\0' && t[i] == '\0') ? 1 : 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;
}
