/*
 * ISPC 2006 / Gotta pick'em all - Easy solution
 * Coded by Goober
 */

#include <stdio.h>

int main() {
  int n;
  scanf("%*d ");
  while(scanf("%d", &n) == 1) printf("%d\n", n/2+1);
  return 0;
}
