#include <stdio.h>

int myStrcmp(char s[], char t[])
{
    int i = 0;
    while (s[i] != '\0' && t[i] != '\0') {
        if (s[i] != t[i]) {
            return 0;   // 違う文字があれば 0
        }
        i++;
    }
    // どちらも終端に到達していれば同じ文字列
    if (s[i] == '\0' && t[i] == '\0') {
        return 1;       // 完全一致
    } else {
        return 0;       // 片方が途中で終わった場合は不一致
    }
}

int main() {
    int ans;
    char s[100];
    char t[100];
    scanf("%s %s", s, t);
    ans = myStrcmp(s, t);
    printf("%s = %s -> %d\n", s, t, ans);
    return 0;
}
