#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  cout << (n / 2) + 1 << "\n";
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
