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

#include <fstream>
#include <iostream>
#include <utility>
#include <vector>

using namespace std;

// input data
int N, V;
vector<pair<int, int>> X, Y;

int main() {
    //  uncomment the following lines if you want to read/write from files
    //  ifstream cin("input.txt");
    //  ofstream cout("output.txt");

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> N >> V;
    X.resize(N);
    Y.resize(N);
    for (auto &x : X) {
        cin >> x.first >> x.second;
    }
    for (auto &y : Y) {
        cin >> y.first >> y.second;
    }

    // insert your code here

    cout << "SAME" << endl; // print the result
    return 0;
}
