One evening Rainbow Dash and Fluttershy have come up with a game. Since the ponies are friends, they have decided not to compete in the game but to pursue a common goal. 

The game starts on a square flat grid, which initially has the outline borders built up. Rainbow Dash and Fluttershy have flat square blocks with size $1\times1$, Rainbow Dash has an infinite amount of light blue blocks, Fluttershy has an infinite amount of yellow blocks. 

The blocks are placed according to the following rule: each newly placed block must touch the built on the previous turns figure by a side (note that the outline borders of the grid are built initially). At each turn, one pony can place any number of blocks of her color according to the game rules.

Rainbow and Fluttershy have found out that they can build patterns on the grid of the game that way. They have decided to start with something simple, so they made up their mind to place the blocks to form a chess coloring. Rainbow Dash is well-known for her speed, so she is interested in the minimum number of turns she and Fluttershy need to do to get a chess coloring, covering the whole grid with blocks. Please help her find that number!

Since the ponies can play many times on different boards, Rainbow Dash asks you to find the minimum numbers of turns for several grids of the games.

The chess coloring in two colors is the one in which each square is neighbor by side only with squares of different colors.


-----Input-----

The first line contains a single integer $T$ ($1 \le T \le 100$): the number of grids of the games. 

Each of the next $T$ lines contains a single integer $n$ ($1 \le n \le 10^9$): the size of the side of the grid of the game. 


-----Output-----

For each grid of the game print the minimum number of turns required to build a chess coloring pattern out of blocks on it.


-----Example-----
Input
2
3
4

Output
2
3



-----Note-----

For $3\times3$ grid ponies can make two following moves: [Image]

Difficulty: interview

Starter code:

Solutions:
for _ in range(int(input())):
    n = int(input())
    print(n // 2 + 1)


t = int(input())
while t:
    n = int(input())
    print(n // 2 + 1)
    t -= 1


def __starting_point():
    t = int(input())
    for _ in range(t):
        n = int(input())
        print(n//2+1)



__starting_point()

t=int(input())
while(t>0):
    a=int(input())
    print(a//2 +1)
    t-=1


read = lambda: map(int, input().split())
t = int(input())
for _ in range(t):
    n = int(input())
    print((n + 2) // 2)

for _ in range((int)(input())):
    n=(int)(input())
    # l=list(map(int,input().split()))
    # a,b=map(int,input().split())
    print(n//2 +1)

t = int(input())
for i in range(t):
    n = int(input())
    print(n //2 + 1)


import sys
input = sys.stdin.readline
for f in range(int(input())):
    print((int(input())+2)//2)

#rOkY
#FuCk

################################## kOpAl #######################################

t=int(input())

while(t>0):

    
    a=int(input())

    
    print(a//2 +1)

    
    t-=1


T = int(input())
for case in range(T):
	x = int(input())
	print(x // 2 + 1)


t = int(input())

for _ in range(t):
    n = int(input()) 
    print(1+(n//2))


ii = lambda :  int(input())
for _ in range(ii()):
    n=ii()
    c=n//2
    print(c+1)

def solve():
    n = int(input())
    print(n // 2 + 1)


for i in range(int(input())):
    solve()


for _ in range(int(input())):
    a=int(input())
    print(a//2+1)


tc = int(input())
for _ in range(tc):
    n = int(input())
    print((n+2)//2)


from collections import defaultdict as dd
import math
import sys
import string
input=sys.stdin.readline
def nn():
	return int(input())

def li():
	return list(input())

def mi():
	return list(map(int, input().split()))

def lm():
	return list(map(int, input().split()))


def solve():
	n = nn()

	print((n+2)//2)

q=nn()

for _ in range(q):
	solve()


for i in ' '*int(input()):print((int(input())+2)//2)

for _ in range(int(input())):
    N = int(input())
    print(N//2 + 1)

for _ in range(int(input())):
    n = int(input())
    print(n//2+1)

t=int(input())
for you in range(t):
    n=int(input())
    print((n+2)//2)


t = int(input())

for _ in range(t):
    n = int(input())
    
    if n%2 == 1:
        print((n+1)//2)
    else:
        print((n+2)//2)


for _ in range(int(input())):
	n=int(input())
	print(n//2+1)

import sys

t = int(sys.stdin.readline())

for _ in range(t):
    n = int(sys.stdin.readline())
    print(n//2+1)


for t in range(int(input())):
    n = int(input())
    print(n // 2 + 1)