#include<bits/stdc++.h> using namespace std; struct Complex { int real; int image; }; void input(Complex& c) { cin >> c.real >> c.image; } int main() { int n, x=0, y=0; Complex a, b,c; cin >> n; while (n--) { input(a); x = x + a.real; y = y + a.image; } cout << x << "+" << y<<"i"; return 0; }