# https://www.hackerrank.com/challenges/maximum-draws/problem

t = int(input())

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

# https://www.hackerrank.com/challenges/maximum-draws/problem

t = int(input())

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

# https://www.hackerrank.com/challenges/maximum-draws/problem