#include <bits/stdc++.h>
using namespace std;
long long int factorial(long long int n) {
  return (n == 1 || n == 0) ? 1 : n * factorial(n - 1);
}
long long int gcd(long long int a, long long int b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
long long int lcm(long long int a, long long int b) {
  return (a * b) / gcd(a, b);
}
bool sortByVal(const pair<double, double> &a, const pair<double, double> &b) {
  if (a.first == b.first) {
    return (a.second > b.second);
  } else
    return (a.first < b.first);
}
int main() {
  long long int t = 1;
  cin >> t;
  while (t--) {
    long long int n, m, i, j, k, l, r, sum = 0, b, c = 0, d = 0, ans = 0;
    cin >> n;
    cout << n / 2 + 1 << endl;
  }
  return 0;
}
