N = int(input()) for i in range(N): p = int(input()) print(2*(p-1))