import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto N = readln.chomp.to!int;
    auto X = new long[](N);
    auto Y = new long[](N);
    auto A = new long[](N);
    auto B = new long[](N);
    foreach (i; 0..N) {
        auto s = readln.split.map!(to!long);
        X[i] = s[0];
        Y[i] = s[1];
    }
    foreach (i; 0..N) {
        auto s = readln.split.map!(to!long);
        A[i] = s[0];
        B[i] = s[1];
    }

    long[long][long] mp;
    foreach (i; 0..N) {
        foreach (j; 0..N) {
            long x = X[i] + A[j];
            long y = Y[i] + B[j];
            mp[x][y] += 1;
        }
    }

    foreach (x; mp.keys) {
        foreach (y; mp[x].keys) {
            if (mp[x][y] == N) {
                writeln(x, " ", y);
                return;
            }
        }
    }
}
