#include <bits/stdc++.h>
using namespace std;
void solve(int n) {
  int count = 0;
  if (n % 2 == 0) {
    count = n / 2 + 1;
    cout << count << endl;
  } else {
    count = (n + 1) / 2;
    cout << count << endl;
  }
}
int main() {
  int t;
  cin >> t;
  while (t) {
    int n;
    cin >> n;
    solve(n);
    t--;
  }
  return 0;
}
