#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y, i;
  long long int j;
  pair<int, int> m;
  cin >> n >> j;
  cin >> m.first >> m.second;
  int xsum = 0, ysum = 0;
  j %= (2 * n);
  int r1, r2;
  if (j >= n) {
    r1 = j - n + 1;
    r2 = n;
  } else {
    r1 = 1;
    r2 = j;
  }
  for (i = 1; i <= n; ++i) {
    cin >> x >> y;
    if (r1 <= i && i <= r2) {
      if (i % 2) {
        xsum += 2 * x;
        ysum += 2 * y;
      } else {
        xsum -= 2 * x;
        ysum -= 2 * y;
      }
    }
  }
  xsum -= m.first;
  ysum -= m.second;
  if ((j & 1) == 0) {
    xsum *= -1;
    ysum *= -1;
  }
  cout << xsum << " " << ysum << endl;
}
