#include <bits/stdc++.h>
using namespace std;
template <class T>
void show(T a, int n) {
  for (int i = 0; i < n; ++i) cout << a[i] << ' ';
  cout << endl;
}
template <class T>
void show(T a, int r, int l) {
  for (int i = 0; i < r; ++i) show(a[i], l);
  cout << endl;
}
const int N = 100010;
const int M = 5000;
const int oo = 10000 * 10000 * 10;
int n;
long long m;
int x, y;
int a[N][2];
int main() {
  int i, j, cas = 0;
  cin >> n >> m;
  cin >> x >> y;
  for (i = 0; i < n; ++i) {
    cin >> a[i][0] >> a[i][1];
  }
  m %= (n + n);
  int ux, uy;
  ux = uy = 0;
  int tag = -1;
  for (i = m - 1; i >= 0; --i) {
    tag = -tag;
    ux = ux + tag * 2 * a[i % n][0];
    uy = uy + tag * 2 * a[i % n][1];
  }
  if (m & 1 == 1)
    tag = -1;
  else
    tag = 1;
  ux = ux + x * tag;
  uy = uy + y * tag;
  cout << ux << " " << uy << endl;
  return 0;
}
