#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long testcases = 1;
  cin >> testcases;
  while (testcases--) {
    long long n;
    cin >> n;
    if (n == 1) {
      cout << 1 << endl;
    } else if (n == 2) {
      cout << 2 << endl;
    } else {
      if (n % 2 == 0) {
        cout << (n / 2) + 1 << endl;
      } else {
        cout << (n / 2) + 1 << endl;
      }
    }
  }
}
