#include <bits/stdc++.h>
using namespace std;
int x[] = {0, 1, 0, -1};
int y[] = {1, 0, -1, 0};
long long gcd(long long a, long long b) {
  if (a % b == 0) return b;
  return gcd(b, a % b);
}
long long fastpow(long long a, long long b) {
  if (b == 0) return 1ll;
  if (b == 1) return a;
  long long sw;
  if (b % 2 == 1)
    sw = a;
  else
    sw = 1;
  long long h = fastpow(a, b / 2);
  return h * h * sw;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie();
  long long a, b, c, d, n, t, m, k;
  cin >> t;
  while (t--) {
    cin >> n;
    cout << n / 2 + 1 << endl;
  }
  cerr << "\nTime elapsed: " << 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
  return 0;
}
