#include <bits/stdc++.h>
using namespace std;
struct Pt {
  long long x, y;
} pt[101000], m;
Pt operator+(Pt a, Pt b) {
  a.x += 2 * b.x;
  a.y += 2 * b.y;
  return a;
}
Pt operator-(Pt a, Pt b) {
  a.x -= 2 * b.x;
  a.y -= 2 * b.y;
  return a;
}
int ab(int b) {
  if (b < 0) return -b;
  return b;
}
int main() {
  int n;
  long long j;
  while (scanf("%d", &n) == 1) {
    int i;
    scanf("%I64d%I64d%I64d", &j, &m.x, &m.y);
    for (i = 0; i < n; ++i) {
      scanf("%I64d%I64d", &pt[i].x, &pt[i].y);
    }
    if (j & 1) m.x = -m.x, m.y = -m.y;
    int left = j % (2 * n);
    if (left <= n) {
      for (i = left - 1; i >= 0; --i)
        if ((left - 1 - i) & 1)
          m = m - pt[i];
        else
          m = m + pt[i];
    } else {
      for (i = left - 1; i >= 0; --i)
        if ((left - 1 - i) & 1)
          m = m - pt[i % n];
        else
          m = m + pt[i % n];
    }
    printf("%I64d %I64d\n", m.x, m.y);
  }
  return 0;
}
