#include <stdio.h>
#include<string.h>
int main() {
    char arr[20] = {0};
    char arr2[20] = {0};
    scanf("%s %s",arr,arr2);
    if(strcmp(arr,arr2)==0)
    {
        printf("same");
    }
    else {
    printf("different");
    }
    return 0;
}