#include <bits/stdc++.h>
using namespace std;
const long long Mod = 1e9 + 7;
const long long Maxn = 1e5 + 10;
const long long INF = 1e18;
using pll = pair<long long, long long>;
int main() {
  long long T;
  scanf("%lld", &T);
  while (T--) {
    long long n;
    cin >> n;
    cout << n / 2 + 1 << endl;
  }
  return 0;
}
