Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

C. Sequence of points

time limit per test

2 secondsmemory limit per test

256 megabytesinput

standard inputoutput

standard outputYou are given the following points with integer coordinates on the plane: *M* _{0}, *A* _{0}, *A* _{1}, ..., *A* _{ n - 1}, where *n* is odd number. Now we define the following infinite sequence of points *M* _{ i}: *M* _{ i} is symmetric to *M* _{ i - 1} according (for every natural number *i*). Here point *B* is symmetric to *A* according *M*, if *M* is the center of the line segment *AB*. Given index *j* find the point *M* _{ j}.

Input

On the first line you will be given an integer *n* (1 ≤ *n* ≤ 10^{5}), which will be odd, and *j* (1 ≤ *j* ≤ 10^{18}), where *j* is the index of the desired point. The next line contains two space separated integers, the coordinates of *M* _{0}. After that *n* lines follow, where the *i*-th line contain the space separated integer coordinates of the point *A* _{ i - 1}. The absolute values of all input coordinates will not be greater then 1000.

Output

On a single line output the coordinates of *M* _{ j}, space separated.

Examples

Input

3 4

0 0

1 1

2 3

-5 3

Output

14 0

Input

3 1

5 5

1000 1000

-1000 1000

3 100

Output

1995 1995

Codeforces (c) Copyright 2010-2020 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: May/26/2020 06:15:46 (h2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|