#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int INF = 2140000000;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  srand(time(NULL));
  int t;
  cin >> t;
  while (t-- > 0) {
    int n;
    cin >> n;
    cout << n / 2 + 1 << endl;
  }
  return 0;
}
