#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  long long j;
  cin >> n >> j;
  long long r = -1;
  long long d = -1;
  r = j % n;
  d = j / n;
  long long sum1x = 0;
  long long sum1y = 0;
  long long sum2x = 0;
  long long sum2y = 0;
  int Mx, My;
  cin >> Mx >> My;
  Mx = -Mx;
  My = -My;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    int curX = (i % 2 == 0) ? 2 * x : -2 * x;
    int curY = (i % 2 == 0) ? 2 * y : -2 * y;
    if (i < r) {
      sum1x += curX;
      sum1y += curY;
    }
    sum2x += curX;
    sum2y += curY;
  }
  if (d == 0) {
    if (r % 2 == 0) {
      cout << -sum1x - Mx << " " << -sum1y - My << endl;
    } else {
      cout << sum1x + Mx << " " << sum1y + My << endl;
    }
    return 0;
  }
  long long ansX, ansY;
  ansX = 0;
  ansY = 0;
  if (d % 2 != 0) {
    ansX = sum2x;
    ansY = sum2y;
  }
  if (r % 2 != 0) {
    ansX = -ansX;
    ansY = -ansY;
  } else {
    sum1x = -sum1x;
    sum1y = -sum1y;
  }
  if (j % 2 == 0) {
    cout << ansX + sum1x - Mx << " " << ansY + sum1y - My << endl;
  } else {
    cout << ansX + sum1x + Mx << " " << ansY + sum1y + My << endl;
  }
  return 0;
}
