#include <bits/stdc++.h>
using namespace std;
int main() {
  int T, p;
  cin >> T;
  for (p = 1; p <= T; p++) {
    long long int N, a;
    cin >> N;
    a = ((long long int)(N / 2)) + 1;
    cout << a << "\n";
  }
  return 0;
}
