#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int i, j, k, n, f = 0, c = 0, mx, mn, ans = 0;
    vector<int> vec;
    cin >> n;
    cout << n / 2 + 1 << endl;
  }
}
