// NOTE: it is recommended to use this even if you don't understand the following code.

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

// constraints
#define MAXN 100000

// input data
int N, V, i;
int X[MAXN][2], Y[MAXN][2];

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

    assert(2 == scanf("%d %d", &N, &V));
    for(i=0; i<N; i++)
        assert(1 == scanf("%d", &X[i][0], &X[i][1]));
    for(i=0; i<N; i++)
        assert(1 == scanf("%d", &Y[i][0], &Y[i][1]));

    // insert your code here

    printf("SAME\n"); // print the result
    return 0;
}
