#include <bits/stdc++.h>
const int Debug = 0;
using namespace std;
template <class T>
void ckmin(T &a, T b) {
  if (a > b) {
    a = b;
  }
}
template <class T>
void ckmax(T &a, T b) {
  if (a < b) {
    a = b;
  }
}
int countbit(int n) { return n == 0 ? 0 : 1 + countbit(n & (n - 1)); }
const int maxint = 0x7fffffff;
const long long max64 = 0x7fffffffffffffffll;
const int N = 100010;
int n, a[N];
long long times;
struct M {
  long long v[2][2];
  M() { v[0][0] = 1, v[1][1] = 1, v[0][1] = 0, v[1][0] = 0; }
  M(long long s0, long long s1, long long s2, long long s3) {
    v[0][0] = s0;
    v[0][1] = s1;
    v[1][0] = s2;
    v[1][1] = s3;
  }
  long long *operator[](int idx) { return v[idx]; }
  void pr() {
    printf("%4lld %4lld\n", v[0][0], v[0][1]);
    printf("%4lld %4lld\n", v[1][0], v[1][1]);
  }
} identity, matx[N], maty[N], basx, basy;
M operator*(M &A, M &B) {
  M r;
  r[0][0] = A[0][0] * B[0][0] + A[0][1] * B[1][0];
  r[0][1] = A[0][0] * B[0][1] + A[0][1] * B[1][1];
  r[1][0] = A[1][0] * B[0][0] + A[1][1] * B[1][0];
  r[1][1] = A[1][0] * B[0][1] + A[1][1] * B[1][1];
  return r;
}
M mul(M &bas, long long times) {
  if (times == 0) {
    return identity;
  }
  if (times == 1) {
    return bas;
  }
  M r = mul(bas, times >> 1);
  r = r * r;
  if (times & 1) {
    r = r * bas;
  }
  return r;
}
int main() {
  int i, j, k, x, y, x0, y0;
  cin >> n >> times;
  cin >> x0 >> y0;
  for (i = 0; i < n; i++) {
    scanf("%d %d", &x, &y);
    matx[i] = M(-1, 0, 2 * x, 1);
    maty[i] = M(-1, 0, 2 * y, 1);
    if (Debug) {
      printf("matx[%d] = \n", i);
      matx[i].pr();
      printf("\nmaty[%d] = \n", i);
      maty[i].pr();
      putchar(10);
    }
    basx = basx * matx[i];
    basy = basy * maty[i];
  }
  basx = mul(basx, times / n);
  basy = mul(basy, times / n);
  if (Debug) {
    printf("basx = \n");
    basx.pr();
    printf("\nbasy = \n");
    basy.pr();
    putchar(10);
  }
  times %= n;
  if (Debug) {
    printf("times = %lld\n", times);
    printf("x0 = %d, y0 = %d\n", x0, y0);
  }
  for (i = 0; i < times; i++) {
    basx = basx * matx[i];
    basy = basy * maty[i];
  }
  cout << basx[0][0] * x0 + basx[1][0] << ' ' << basy[0][0] * y0 + basy[1][0]
       << endl;
  return 0;
}
