#include <bits/stdc++.h>
using namespace std;
const long long M = 1000000007;
const long long N = 2e6 + 5;
const long long INF = 2e9 + 12;
void solve() {
  long long n;
  cin >> n;
  cout << n / 2 + 1 << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL);
  long long tc = 1;
  cin >> tc;
  for (long long t = 1; t <= tc; t++) {
    solve();
  }
}
