#include <bits/stdc++.h>
using namespace std;
const char nl = '\n';
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0);
  ;
  long long t, n, x;
  cin >> t;
  while (t--) {
    cin >> n;
    x = n / 2;
    if (n & 1)
      cout << n - x << nl;
    else {
      cout << n - x + 1 << nl;
    }
  }
  return 0;
}
