#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> v;
  int n;
  while (cin >> n && n != 0) {
    v.push_back(n);
  }
  int x = v.size();
  for (int i = 0; i < x / 2; i++) {
    v[i] = v[i] + v[x - i - 1];
  }
  for (int i = 0; i < x / 2 + x % 2; i++) {
    cout << v[i] << " ";
  }
  return 0;
}
