#include <stdio.h>

int fuzzyStrcmp(char s[], char t[])
{
    int i;
    for(i = 0; s[i] != '\0' && t[i] != '\0'; i++)
    {
        char c1 = s[i];
        char c2 = t[i];

        if('a' <= c1 && c1 <= 'z')
        {
            c1 = c1 - 32;
        }
        if('a' <= c2 && c2 <= 'z')
        {
            c2 = c2 - 32;
        }

        if(c1 != c2)
        {
            return 0;
        }
    }

    if(s[i] == '\0' && t[i] == '\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;
}