#include <bits/stdc++.h>
using namespace std;
void fun() {
  long long i, c = 0, n;
  cin >> n;
  c = n / 2 + 1;
  cout << c << endl;
  return;
}
int main() {
  long long t = 1;
  cin >> t;
  while (t--) {
    fun();
  }
  return 0;
}
