#include <bits/stdc++.h>
using namespace std;
const int N = (int)1e5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int T;
  cin >> T;
  for (int tc = 1; tc <= T; tc++) {
    int n;
    cin >> n;
    cout << (n / 2) + 1 << "\n";
  }
  return 0;
}
