#include <bits/stdc++.h>
using namespace std;
int nextint() {
  int t;
  scanf("%d", &t);
  return t;
}
double nextdouble() {
  double t;
  scanf("%lf", &t);
  return t;
}
long long nextll() {
  long long t;
  scanf("%I64d", &t);
  return t;
}
long long addy[300000];
long long nxtx[300000];
vector<long long> v;
int n;
void go(long long x) {
  long long i = x;
  if (nxtx[i] == -2) {
    long long y = v[x];
    x += v[x];
    if (x <= 0 || x > n) {
      nxtx[i] = i, addy[i] = y;
      return;
    }
    y += v[x];
    x -= v[x];
    if (x <= 0 || x > n) {
      nxtx[i] = i, addy[i] = y;
      return;
    }
    nxtx[i] = -1;
    go(x);
    nxtx[i] = nxtx[x];
    addy[i] = y + addy[x];
  }
}
int main() {
  n = nextint();
  v = vector<long long>(n + 1);
  for (int i = 2; i <= n; i++) v[i] = nextll();
  for (int i = 0; i < n; i++) nxtx[i] = -2;
  nxtx[1] = -1;
  for (int i = 2; i < n; i++) go(i);
  for (int i = 1; i < n; i++) {
    v[1] = i;
    long long x = 1;
    long long y = 0;
    y += v[x];
    x += v[x];
    if (x <= 0 || x > n) {
      cout << y << endl;
      continue;
    }
    y += v[x];
    x -= v[x];
    if (x <= 0 || x > n) {
      cout << y << endl;
      continue;
    }
    if (nxtx[x] == -1)
      cout << -1 << endl;
    else
      cout << y + addy[x] << endl;
  }
  return 0;
}
