#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vll>;
using vvvll = vector<vvll>;
using ull = unsigned long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vvvd = vector<vvd>;
using vs = vector<string>;
using vvs = vector<vs>;
using vc = vector<char>;
using vvc = vector<vc>;
using ii = pair<int, int>;
using vii = vector<ii>;
using vvii = vector<vii>;
using dd = pair<double, double>;
using vdd = vector<dd>;
using vvdd = vector<vdd>;
using Mii = map<int, int>;
using vMii = vector<Mii>;
using Si = set<int>;
using vSi = vector<Si>;
using vvSi = vector<vSi>;
using ld = long double;
using vld = vector<ld>;
using vvld = vector<vld>;
struct pt {
  ll x, y;
};
using vpt = vector<pt>;
void read(pt& p) { cin >> p.x >> p.y; }
void sym(pt& m, const pt& p) {
  m.x = 2 * p.x - m.x;
  m.y = 2 * p.y - m.y;
}
int main() {
  cout.setf(ios::fixed);
  cout.precision(15);
  cin.tie(NULL);
  ios_base::sync_with_stdio(false);
  ll n;
  ll j;
  while (cin >> n >> j) {
    pt m;
    read(m);
    vpt a(n);
    for (pt& p : a) read(p);
    j %= (2 * n);
    for (int i = 0; i < j; ++i) {
      sym(m, a[i % n]);
    }
    cout << m.x << " " << m.y << '\n';
  }
}
