/*
 * This template is valid both in C and in C++,
 * so you can expand it with code from both languages.
 * NOTE: it is recommended to use this even if you don't
 * understand the following code.
 */

#include <stdio.h>
#include <assert.h>
#include <string.h>

// constraints
#define MAXN 10000

// input data
int N;
char op1[2*MAXN], op2[2*MAXN], res[2*MAXN];

int main() {
//  uncomment the following lines if you want to read/write from files
//  freopen("input.txt", "r", stdin);
//  freopen("output.txt", "w", stdout);

    scanf("%s", &op1[0]);
    scanf("%s", &op2[0]);
    scanf("%s", &res[0]);
    N = strlen(op1);
    assert(strlen(op1) == strlen(op2));

    // insert your code here
    // NOTE: both operands and result are read as strings
   
    // print the result
    printf("%s\n", res); // op1
    printf("%s\n", res); // op2
    return 0;
}
